MCPcopy
hub / github.com/socketio/socket.io / socketRooms

Method socketRooms

packages/socket.io-adapter/lib/in-memory-adapter.ts:278–280  ·  view source on GitHub ↗

* Gets the list of rooms a given socket has joined. * * @param {SocketId} id the socket id

(id: SocketId)

Source from the content-addressed store, hash-verified

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

Callers 2

index.tsFile · 0.80
roomsMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected