예제 #1
0
 public override Task OnDisconnected(WebSocket socket)
 {
     foreach (var room in rooms)
     {
         room.Value.Remove(WebSocketConnectionManager.GetId(socket));
     }
     return(base.OnDisconnected(socket));
 }
예제 #2
0
 protected WebSocketHandler(WebSocketConnectionManager webSocketConnectionManager)
 {
     WebSocketConnectionManager = webSocketConnectionManager;
 }
예제 #3
0
 public NotificationsMessageHandler(WebSocketConnectionManager webSocketConnectionManager, GlobalConfig config) : base(webSocketConnectionManager)
 {
     this.config = config;
 }