Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
 public WSocketSession(IOwinContext context,
                       WSocketSessionFactory factory,
                       CancellationToken cancelToken) : base(context, factory, cancelToken)
 {
     //no op just init base
 }