* Gets the list of rooms a given socket has joined. * * @param {SocketId} id the socket id
(id: SocketId)
| 276 | * @param {SocketId} id the socket id |
| 277 | */ |
| 278 | public socketRooms(id: SocketId): Set<Room> | undefined { |
| 279 | return this.sids.get(id); |
| 280 | } |
| 281 | |
| 282 | /** |
| 283 | * Returns the matching socket instances |