You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The definition of timeouts is desirable to cancel long outstanding
requests automatically via browser mechanisms. Specifically, it can
happen that lots of pending XHR requests are scheduled, but are never
purged by the browser due to the lack of a timeout definition.
Copy file name to clipboardExpand all lines: README.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -159,7 +159,7 @@ Exposed as `eio` in the browser standalone build.
159
159
- `String`|`ArrayBuffer`: utf-8 encoded data or ArrayBuffer containing
160
160
binary data
161
161
- `close`
162
-
- Fired upon disconnection. In compliance with the WebSocket API spec, this event may be
162
+
- Fired upon disconnection. In compliance with the WebSocket API spec, this event may be
163
163
fired even if the `open` event does not occur (i.e. due to connection error or `close()`).
164
164
- `error`
165
165
- Fired when an error occurs.
@@ -224,6 +224,7 @@ Exposed as `eio` in the browser standalone build.
224
224
- `threshold` (`Number`): data is compressed only if the byte size is above this value. This option is ignored on the browser. (`1024`)
225
225
- `extraHeaders` (`Object`): Headers that will be passed for each request to the server (via xhr-polling and via websockets). These values then can be used during handshake or for special proxies. Can only be used in Node.js client environment.
226
226
- `onlyBinaryUpgrades` (`Boolean`): whether transport upgrades should be restricted to transports supporting binary data (`false`)
227
+
- `requestTimeout` (`Number`): Timeout for xhr-polling requests in milliseconds (`0`)
227
228
- `send`
228
229
- Sends a message to the server
229
230
- **Parameters**
@@ -290,4 +291,3 @@ See the `Tests` section above for how to run tests before submitting any patches
0 commit comments