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

Method del

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

* Removes a socket from a room. * * @param {SocketId} id the socket id * @param {Room} room the room name

(id: SocketId, room: Room)

Source from the content-addressed store, hash-verified

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);

Callers 2

index.tsFile · 0.80
leaveMethod · 0.80

Calls 1

_delMethod · 0.95

Tested by

no test coverage detected