Skip to content

Releases: socketio/engine.io-client

6.5.3

09 Nov 15:31
fa47916
Compare
Choose a tag to compare

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

6.5.2

02 Aug 21:49
1097056
Compare
Choose a tag to compare

Bug Fixes

  • webtransport: add proper framing (d55c39e)
  • webtransport: honor the binaryType attribute (8270e00)

Credits

Huge thanks to @cdewbery for helping!

Links

6.5.1

28 Jun 06:50
500085d
Compare
Choose a tag to compare

Bug Fixes

  • make closeOnBeforeunload default to false (a63066b)
  • webtransport: properly handle abruptly closed connections (cf6aa1f)

Links

6.5.0

16 Jun 09:12
4abc2ca
Compare
Choose a tag to compare

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:

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

6.4.0

06 Feb 16:19
89487d8
Compare
Choose a tag to compare

The minor bump is due to changes on the server side.

Links

6.3.1

04 Feb 06:24
828d447
Compare
Choose a tag to compare

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

10 Jan 16:10
e2b39b6
Compare
Choose a tag to compare

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

6.2.3

13 Oct 10:41
9d772e3
Compare
Choose a tag to compare

Bug Fixes

  • properly clear "beforeunload" event listener (99925a4)

Links

3.5.3

07 Sep 06:10
adcce77
Compare
Choose a tag to compare

Bug Fixes

Links

6.2.2

02 May 08:13
1975c5c
Compare
Choose a tag to compare

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.

  • use named export for globalThis shim (#688) (32878ea)

Default export of globalThis seems to have a problem in the "browser" field when the library is loaded asynchronously with webpack.

Links