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); }
public static void ConfigureRoutes(Router router) { router.RegisterController("/client", typeof(ClientController)); router.RegisterController("/device", typeof(DeviceController)); }