Пример #1
0
 public void Join(WebSocketChannel channel)
 {
     if (this.module != channel.Module)
     {
         return;
     }
     channel.connections[this] = true;
     this.channels[channel]    = true;
 }
Пример #2
0
 public void Leave(WebSocketChannel channel)
 {
     channel.connections.TryRemove(this, out _);
     this.channels.TryRemove(channel, out _);
 }