public WebSocketServiceImpl(WebSocketServerBase server, Router router)
 {
     _server = server;
     _server.MessageReceived += (s, e) => router.RouteRequest(e.Connection, e.Message);
     _server.ConnectionClosed += (s, e) => router.CleanupConnection(e.Connection);
 }        
Example #2
0
 public static void ConfigureRoutes(Router router)
 {
     router.RegisterController("/client", typeof(ClientController));
     router.RegisterController("/device", typeof(DeviceController));
 }