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

Function constructor

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

* Transport abstract constructor. * * @param {Object} opts - options * @protected

(opts)

Source from the content-addressed store, hash-verified

58 * @protected
59 */
60 constructor(opts) {
61 super();
62 installTimerFunctions(this, opts);
63
64 this.opts = opts;
65 this.query = opts.query;
66 this.socket = opts.socket;
67 this.supportsBinary = !opts.forceBase64;
68 }
69
70 /**
71 * Emits an error.

Callers

nothing calls this directly

Calls 1

installTimerFunctionsFunction · 0.90

Tested by

no test coverage detected