1 install nuget package
2 Add class Add | New Item | Visual C# | Web | SignalR | SignalR Hub Class (v2)
3 Add Action to HomeController
4 Add view
2 Add class Add | New Item | Visual C# | Web | SignalR | SignalR Hub Class (v2)
3 Add Action to HomeController
4 Add view
5 Add Startup class
using Owin;
using Microsoft.Owin;
[assembly: OwinStartup(typeof(SignalRChat.Startup))]
namespace SignalRChat
{
public class Startup
{
public void Configuration(IAppBuilder app)
{
// Any connection or hub wire up and configuration should go here
app.MapSignalR();
}
}
}
6 Test
No comments:
Post a Comment
Note: only a member of this blog may post a comment.