|
2 | 2 |
|
3 | 3 | ## 2023
|
4 | 4 |
|
| 5 | +- [6.5.0](#650-2023-06-16) (Jun 2023) |
5 | 6 | - [6.4.0](#640-2023-02-06) (Feb 2023)
|
6 | 7 | - [6.3.1](#631-2023-02-04) (Feb 2023)
|
7 | 8 | - [6.3.0](#63O-2023-01-10) (Jan 2023)
|
|
36 | 37 |
|
37 | 38 | # Release notes
|
38 | 39 |
|
| 40 | +# [6.5.0](https://github.com/socketio/engine.io-client/compare/6.4.0...6.5.0) (2023-06-16) |
| 41 | + |
| 42 | + |
| 43 | +### Features |
| 44 | + |
| 45 | +#### Support for WebTransport |
| 46 | + |
| 47 | +The Engine.IO client can now use WebTransport as the underlying transport. |
| 48 | + |
| 49 | +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. |
| 50 | + |
| 51 | +References: |
| 52 | + |
| 53 | +- https://w3c.github.io/webtransport/ |
| 54 | +- https://developer.mozilla.org/en-US/docs/Web/API/WebTransport |
| 55 | +- https://developer.chrome.com/articles/webtransport/ |
| 56 | + |
| 57 | +**For Node.js clients**: until WebTransport support lands [in Node.js](https://github.com/nodejs/node/issues/38478), you can use the `@fails-components/webtransport` package: |
| 58 | + |
| 59 | +```js |
| 60 | +import { WebTransport } from "@fails-components/webtransport"; |
| 61 | + |
| 62 | +global.WebTransport = WebTransport; |
| 63 | +``` |
| 64 | + |
| 65 | +Added in [7195c0f](https://github.com/socketio/engine.io-client/commit/7195c0f305b482f7b1ca2ed812030caaf72c0906). |
| 66 | + |
| 67 | +#### Cookie management for the Node.js client |
| 68 | + |
| 69 | +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. |
| 70 | + |
| 71 | +```js |
| 72 | +import { Socket } from "engine.io-client"; |
| 73 | + |
| 74 | +const socket = new Socket("https://example.com", { |
| 75 | + withCredentials: true |
| 76 | +}); |
| 77 | +``` |
| 78 | + |
| 79 | +Added in [5fc88a6](https://github.com/socketio/engine.io-client/commit/5fc88a62d4017cdc144fa39b9755deadfff2db34). |
| 80 | + |
| 81 | +### Dependencies |
| 82 | + |
| 83 | +- [`ws@~8.11.0`](https://github.com/websockets/ws/releases/tag/8.11.0) (no change) |
| 84 | + |
| 85 | + |
| 86 | + |
39 | 87 | ## [6.4.0](https://github.com/socketio/engine.io-client/compare/6.3.1...6.4.0) (2023-02-06)
|
40 | 88 |
|
41 | 89 | The minor bump is due to changes on the server side.
|
|
0 commit comments