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