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

Method reconnection

packages/socket.io-client/lib/manager.ts:201–208  ·  packages/socket.io-client/lib/manager.ts::Manager.reconnection
(v?: boolean)

Source from the content-addressed store, hash-verified

199 public reconnection(): boolean;
200 public reconnection(v?: boolean): this | boolean;
201 public reconnection(v?: boolean): this | boolean {
202 if (!arguments.length) return this._reconnection;
203 this._reconnection = !!v;
204 if (!v) {
205 this.skipReconnect = true;
206 }
207 return this;
208 }
209
210 /**
211 * Sets the reconnection attempts config.

Callers 2

constructorMethod · 0.95
connection.tsFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected