* Removes a socket from a room. * * @param {SocketId} id the socket id * @param {Room} room the room name
(id: SocketId, room: Room)
| 110 | * @param {Room} room the room name |
| 111 | */ |
| 112 | public del(id: SocketId, room: Room): Promise<void> | void { |
| 113 | if (this.sids.has(id)) { |
| 114 | this.sids.get(id).delete(room); |
| 115 | } |
| 116 | |
| 117 | this._del(room, id); |
| 118 | } |
| 119 | |
| 120 | private _del(room: Room, id: SocketId) { |
| 121 | const _room = this.rooms.get(room); |