public void Configuration(IAppBuilder appBuilder) { // prepare the web socket factory, again read here https://github.com/khenidak/WebSocketsServer var router = GetRouter().Result; var factory = new WSocketSessionFactory(router); appBuilder.MapWebSocket <WSocketSessionFactory, WSocketSession>(factory); }
public WSocketSession(IOwinContext context, WSocketSessionFactory factory, CancellationToken cancelToken) : base(context, factory, cancelToken) { //no op just init base }