Created
May 13, 2014 12:13
-
-
Save papeMK2/fd99d538e38fc1d3ce83 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Microsoft.AspNet.SignalR; | |
using Microsoft.AspNet.SignalR.Hubs; | |
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Web; | |
using Microsoft.Owin; | |
using Owin; | |
[assembly: OwinStartupAttribute(typeof(SignalRServerSample.Startup))] | |
namespace SignalRServerSample.Hubs | |
{ | |
public partial class Startup | |
{ | |
public void Configuration(IAppBuilder app) | |
{ | |
app.MapSignalR(); | |
} | |
} | |
[HubName("Hubs")] | |
public class SampleHub : Hub | |
{ | |
public void Hello(string str) | |
{ | |
Clients.All.HelloWorld(str); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment