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

Method randomizationFactor

packages/socket.io-client/lib/manager.ts:253–258  ·  packages/socket.io-client/lib/manager.ts::Manager.randomizationFactor
(v?: number)

Source from the content-addressed store, hash-verified

251 public randomizationFactor(): number;
252 public randomizationFactor(v?: number): this | number;
253 public randomizationFactor(v?: number): this | number {
254 if (v === undefined) return this._randomizationFactor;
255 this._randomizationFactor = v;
256 this.backoff?.setJitter(v);
257 return this;
258 }
259
260 /**
261 * Sets the maximum delay between reconnections.

Callers 2

constructorMethod · 0.95
connection.tsFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected