Ejemplo n.º 1
0
 public static IApplicationBuilder MapWebSocketManager(this IApplicationBuilder app, PathString path, WebSocketHandler handler)
 {
     return(app.Map(path, (_app) => _app.UseMiddleware <WebSocketMiddleware>(handler)));
 }
 public WebSocketConnection(WebSocketHandler handler)
 {
     Handler      = handler;
     LastLiveTime = new DateTime(1970, 1, 1);
 }