package
Client for the realtime Engine
npm install engine.io-clientGitHub-flavored package documentation.
Across all versions, last 30 days.
89,803,957 in 30 days
Runtime metadata.
Engine.IO is the low-level realtime engine behind Socket.IO.
It provides a reliable, bidirectional communication layer between a Node.js server and a client, using HTTP long-polling first and upgrading to better transports when possible, such as WebSocket or WebTransport.
Table of Contents
npm install engine.io-clientimport { Socket } from "engine.io-client";
const socket = new Socket("ws://localhost:8080");
socket.on("open", () => {
socket.send("hello");
});
socket.on("message", (data) => {
console.log("received:", data);
});See the API documentation for the full list of available options, methods, events, and properties.
darrachequesne
damien.arrachequesne@gmail.com
Estimated unpacked size across 7 packages.
1.1 MB
Includes dependencies.
5 direct · 2 outdated
~8.21.0
8.23.0
~4.4.1
4.4.3
~5.2.1
5.2.3
~2.1.1
4.0.0
3.1.2