Skip to content

Releases: socketio/engine.io-client

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

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