Skip to content

Releases: socketio/engine.io-client

6.2.1

17 Apr 22:48
8437600
Compare
Choose a tag to compare

Links

6.2.0

17 Apr 21:49
d0773b8
Compare
Choose a tag to compare

Features

  • add details to the "close" event (b9252e2)

The close event will now include additional details to help debugging if anything has gone wrong.

Example when a payload is over the maxHttpBufferSize value in HTTP long-polling mode:

socket.on("close", (reason, details) => {
  console.log(reason); // "transport error"

  // in that case, details is an error object
  console.log(details.message); "xhr post error"
  console.log(details.description); // 413 (the HTTP status of the response)

  // details.context refers to the XMLHttpRequest object
  console.log(details.context.status); // 413
  console.log(details.context.responseText); // ""
});

Note: the error object was already included before this commit and is kept for backward compatibility.

  • slice write buffer according to the maxPayload value (46fdc2f)

The server will now include a "maxPayload" field in the handshake details, allowing the clients to decide how many
packets they have to send to stay under the maxHttpBufferSize value.

Links

6.1.1

14 Nov 07:22
3c40aa9
Compare
Choose a tag to compare

Bug Fixes

  • add package name in nested package.json (6e798fb)
  • fix vite build for CommonJS users (c557707)

Links

6.0.3

14 Nov 07:21
a469430
Compare
Choose a tag to compare

Some bug fixes were backported from master, to be included by the latest socket.io-client version.

Bug Fixes

  • add package name in nested package.json (32511ee)
  • fix vite build for CommonJS users (9fcaf58)

Links

6.1.0

08 Nov 07:42
e7b4700
Compare
Choose a tag to compare

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

Bug Fixes

  • typings: allow any value in the query option (018e1af)
  • typings: allow port to be a number (#680) (8f68f77)

Links

6.0.2

16 Oct 00:08
68dc241
Compare
Choose a tag to compare

Bug Fixes

Links

6.0.1

16 Oct 00:08
9a62294
Compare
Choose a tag to compare

Bug Fixes

Links

6.0.0

08 Oct 14:14
1524413
Compare
Choose a tag to compare

This major release contains three important changes:

  • the codebase was migrated to TypeScript (7245b80)
  • rollup is now used instead of webpack to create the bundles (27de300)
  • code that provided support for ancient browsers (think IE8) was removed (c656192 and b2c7381)

There is now three distinct builds (in the build/ directory):

  • CommonJS
  • ESM with debug
  • ESM without debug (rationale here: 00d7e7d)

And three bundles (in the dist/ directory) :

  • engine.io.js: unminified UMD bundle
  • engine.io.min.js: minified UMD bundle
  • engine.io.esm.min.js: ESM bundle

Please note that the communication protocol was not updated, so a v5 client will be able to reach a v6 server (and vice-versa).

Reference: https://github.com/socketio/engine.io-protocol

Features

  • provide an ESM build without debug (00d7e7d)

BREAKING CHANGES

  • the enableXDR option is removed (c656192)
  • the jsonp and forceJSONP options are removed (b2c7381)

Links

5.2.0

29 Aug 06:27
c7e27b0
Compare
Choose a tag to compare

Features

  • add an option to use native timer functions (#672) (5d1d5be)

Links

3.3.3

28 Jul 09:44
d697e1e
Compare
Choose a tag to compare

Bug Fixes

Links