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

Function socket

packages/socket.io-adapter/test/index.ts:63–77  ·  view source on GitHub ↗
(id)

Source from the content-addressed store, hash-verified

61 it("should exclude sockets in specific rooms when broadcasting", () => {
62 let ids = [];
63 function socket(id) {
64 return [
65 id,
66 {
67 id,
68 client: {
69 writeToEngine(payload, opts) {
70 expect(payload).to.eql(["123"]);
71 expect(opts.preEncoded).to.eql(true);
72 ids.push(id);
73 },
74 },
75 },
76 ];
77 }
78 const nsp = {
79 server: {
80 encoder: {

Callers 1

index.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected