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