Releases: socketio/engine.io-client
6.5.3
Bug Fixes
- add a maximum length for the URL (707597d)
- improve compatibility with node16 module resolution (#711) (46ef851)
Credits
Huge thanks to @tylerbutler for helping!
Links
- Diff: 6.5.2...6.5.3
- Server release: -
ws@~8.11.0
(no change)
6.5.2
Bug Fixes
Credits
Huge thanks to @cdewbery for helping!
Links
- Diff: 6.5.1...6.5.2
- Server release: -
ws@~8.11.0
(no change)
6.5.1
Bug Fixes
- make closeOnBeforeunload default to false (a63066b)
- webtransport: properly handle abruptly closed connections (cf6aa1f)
Links
- Diff: 6.5.0...6.5.1
- Server release: -
ws@~8.11.0
(no change)
6.5.0
Features
Support for WebTransport
The Engine.IO client can now use WebTransport as the underlying transport.
WebTransport is a web API that uses the HTTP/3 protocol as a bidirectional transport. It's intended for two-way communications between a web client and an HTTP/3 server.
References:
- https://w3c.github.io/webtransport/
- https://developer.mozilla.org/en-US/docs/Web/API/WebTransport
- https://developer.chrome.com/articles/webtransport/
For Node.js clients: until WebTransport support lands in Node.js, you can use the @fails-components/webtransport
package:
import { WebTransport } from "@fails-components/webtransport";
global.WebTransport = WebTransport;
Added in 7195c0f.
Cookie management for the Node.js client
When setting the withCredentials
option to true
, the Node.js client will now include the cookies in the HTTP requests, making it easier to use it with cookie-based sticky sessions.
import { Socket } from "engine.io-client";
const socket = new Socket("https://example.com", {
withCredentials: true
});
Added in 5fc88a6.
Links
- Diff: 6.4.0...6.5.0
- Server release: 6.5.0
- ws version:
~8.11.0
(no change)
6.4.0
The minor bump is due to changes on the server side.
Links
- Diff: 6.3.1...6.4.0
- Server release: 6.4.0
- ws version:
~8.11.0
(no change)
6.3.1
Bug Fixes
- typings: do not expose browser-specific types (37d7a0a)
Links
- Diff: 6.3.0...6.3.1
- Server release: -
- ws version:
~8.11.0
(no change)
6.3.0
Bug Fixes
- properly parse relative URL with a "@" character (12b7d78)
- use explicit context for setTimeout function (#699) (047f420)
Features
The trailing slash which was added by default can now be disabled:
import { Socket } from "engine.io-client";
const socket = new Socket("https://example.com", {
addTrailingSlash: false
});
In the example above, the request URL will be https://example.com/engine.io
instead of https://example.com/engine.io/
.
Links
- Diff: 6.2.3...6.3.0
- Server release: 6.3.0
- ws version:
~8.11.0
(diff)
6.2.3
Bug Fixes
- properly clear "beforeunload" event listener (99925a4)
Links
- Diff: 6.2.2...6.2.3
- Server release: -
- ws version:
~8.2.3
3.5.3
Bug Fixes
- fix usage with vite (280de36)
Links
- Diff: 3.5.2...3.5.3
- Server release: -
- ws version: ~7.4.2
6.2.2
Bug Fixes
- simplify the check for WebSocket availability (f158c8e)
This check was added for the flashsocket transport, which has been deprecated for a while now ([1]). But it fails with latest webpack versions, as the expression "__initialize" in WebSocket
gets evaluated to true
.
Default export of globalThis seems to have a problem in the "browser" field when the library is loaded asynchronously with webpack.
Links
- Diff: 6.2.1...6.2.2
- Server release: -
- ws version:
~8.2.3