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

Function Transport

packages/socket.io/client-dist/socket.io.js:796–806  ·  view source on GitHub ↗

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

(opts)

Source from the content-addressed store, hash-verified

794 * @protected
795 */
796 function Transport(opts) {
797 var _this2;
798 _this2 = _Emitter.call(this) || this;
799 _this2.writable = false;
800 installTimerFunctions(_this2, opts);
801 _this2.opts = opts;
802 _this2.query = opts.query;
803 _this2.socket = opts.socket;
804 _this2.supportsBinary = !opts.forceBase64;
805 return _this2;
806 }
807 /**
808 * Emits an error.
809 *

Callers

nothing calls this directly

Calls 1

installTimerFunctionsFunction · 0.70

Tested by

no test coverage detected