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

Method timeout

packages/socket.io-client/lib/manager.ts:287–291  ·  packages/socket.io-client/lib/manager.ts::Manager.timeout
(v?: number | boolean)

Source from the content-addressed store, hash-verified

285 public timeout(): number | boolean;
286 public timeout(v?: number | boolean): this | number | boolean;
287 public timeout(v?: number | boolean): this | number | boolean {
288 if (!arguments.length) return this._timeout;
289 this._timeout = v;
290 return this;
291 }
292
293 /**
294 * Starts trying to reconnect if reconnection is enabled and we have not

Callers 1

constructorMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected