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 |
Tested by
no test coverage detected