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

Function send

packages/engine.io-client/lib/transport.ts:114–121  ·  view source on GitHub ↗

* Sends multiple packets. * * @param {Array} packets

(packets)

Source from the content-addressed store, hash-verified

112 * @param {Array} packets
113 */
114 public send(packets) {
115 if (this.readyState === "open") {
116 this.write(packets);
117 } else {
118 // this might happen if the transport was silently closed in the beforeunload event handler
119 debug("transport is not open, discarding packets");
120 }
121 }
122
123 /**
124 * Called upon open

Callers

nothing calls this directly

Calls 2

debugFunction · 0.85
writeMethod · 0.45

Tested by

no test coverage detected