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

Function getSockets

packages/socket.io/test/namespaces.ts:232–238  ·  packages/socket.io/test/namespaces.ts::getSockets
()

Source from the content-addressed store, hash-verified

230 });
231
232 async function getSockets() {
233 const sids = await io.of(class="st">"/chat").allSockets();
234
235 expect(sids).to.contain(chatSids[0], chatSids[1]);
236 expect(sids).to.not.contain(otherSid);
237 success(done, io, c1, c2, c3);
238 }
239 });
240
241 it(class="st">"should find all clients in a namespace room", (done) => {

Callers 1

namespaces.tsFile · 0.85

Calls 5

successFunction · 0.90
containMethod · 0.80
allSocketsMethod · 0.45
ofMethod · 0.45
inMethod · 0.45

Tested by

no test coverage detected