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

Method send

packages/socket.io-client/lib/socket.ts:387–391  ·  view source on GitHub ↗

* Sends a `message` event. * * This method mimics the WebSocket.send() method. * * @see https://developer.mozilla.org/en-US/docs/Web/API/WebSocket/send * * @example * socket.send("hello"); * * // this is equivalent to * socket.emit("message", "hello"); * * @return

(...args: any[])

Source from the content-addressed store, hash-verified

385 * @return self
386 */
387 public send(...args: any[]): this {
388 args.unshift("message");
389 this.emit.apply(this, args);
390 return this;
391 }
392
393 /**
394 * Override `emit`.

Callers 14

doPublishMethod · 0.45
doPublishResponseMethod · 0.45
setupPrimaryFunction · 0.45
getRoomsFunction · 0.45
index.tsFile · 0.45
worker.jsFile · 0.45
setupPrimaryWithRedisFunction · 0.45
onMessageFunction · 0.45
_tryUpgradeFunction · 0.45
setupPrimaryFunction · 0.45
publishMessageMethod · 0.45
redis.tsFile · 0.45

Calls 1

applyMethod · 0.80

Tested by

no test coverage detected