Socket
Socket
Sign inDemoInstall

engine.io-client

Package Overview
Dependencies
88
Maintainers
1
Versions
154
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install
2345
16Next

6.5.3

Diff

Changelog

Source

6.5.3 (2023-11-09)

Bug Fixes

  • add a maximum length for the URL (707597d)
  • improve compatibility with node16 module resolution (#711) (46ef851)

Dependencies

darrachequesne
published 6.5.2 •

Changelog

Source

6.5.2 (2023-08-01)

Bug Fixes

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

Dependencies

darrachequesne
published 6.5.1 •

Changelog

Source

6.5.1 (2023-06-28)

Bug Fixes

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

Dependencies

darrachequesne
published 6.5.0 •

Changelog

Source

6.5.0 (2023-06-16)

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.

darrachequesne
published 6.4.0 •

Changelog

Source

6.4.0 (2023-02-06)

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

Dependencies

darrachequesne
published 6.3.1 •

Changelog

Source

6.3.1 (2023-02-04)

Bug Fixes

  • typings: do not expose browser-specific types (37d7a0a)

Dependencies

darrachequesne
published 6.3.0 •

Changelog

Source

6.3.0 (2023-01-10)

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/.

Dependencies

darrachequesne
published 6.2.3 •

Changelog

Source

6.2.3 (2022-10-13)

Bug Fixes

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

Dependencies

darrachequesne
published 3.5.3 •

darrachequesne
published 6.2.2 •

Changelog

Source

6.2.2 (2022-05-02)

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.

2345
16Next
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc