PACKAGE · WEBSOCKET

faye-websocket

Standards-compliant WebSocket server and client

WEEKLY DOWNLOADS 40.8M
STARS 612
FORKS 101
OPEN ISSUES 5
GZIP SIZE 17.2 kB
UNPACKED SIZE 27.7 kB
DEPENDENCIES 5
LAST UPDATED 4y ago
DOWNLOAD TRENDS

faye-websocket downloads · last 12 months

Download trends for faye-websocket1 download series from Nov 2025 to Oct 2026. Use left and right arrow keys to inspect monthly values.038.9M77.9M116.8M155.7MNov 2025FebMayAugOct 2026
faye-websocket
ABOUT FAYE-WEBSOCKET

faye-websocket provides standards-compliant WebSocket client and server functionality for JavaScript applications. It addresses the protocol-level work involved in opening WebSocket connections and exchanging messages, so applications can use a WebSocket interface rather than implementing that behavior themselves.

The package is focused on WebSocket communication and is intended for developers who want to work with the protocol directly from client or server code. Its stated standards-compliant scope makes it relevant when interoperability with WebSocket peers is important; the supplied package details do not specify additional framework integrations or higher-level application features.

The package exposes client and server capabilities, allowing code to create connections on either side of a WebSocket exchange. The supplied information does not document specific constructor signatures, events, hooks, or message-handling methods, so consult the package's version 0.12.0 documentation before implementing those details rather than assuming an API shape.

faye-websocket can fit into workflows where an application needs a WebSocket client or a WebSocket server, including projects that already have their own framework or HTTP-server structure. The available details do not identify framework-specific adapters, so integration should be planned around the documented client and server interfaces rather than expecting framework bindings.

The package is version 0.12.0, licensed under Apache-2.0, and has an unpacked size of 27.7 kB with a reported gzip bundle size of 17.2 kB. The supplied figures also report 39.9M weekly downloads, 611 GitHub stars, 101 forks, 5 open issues, and a last-updated date of 2026-11-16; these are metadata, not guarantees about compatibility or runtime performance.

A key practical caveat is that the provided package information does not describe supported runtimes, maintenance policy, security behavior, or detailed protocol features. Check the versioned documentation and test the client or server path you intend to deploy, especially where your application depends on specific connection events or framework integration.

WHEN TO USE
  • When implementing a WebSocket client, use the package's client capability to connect to a WebSocket endpoint and exchange protocol messages.
  • When implementing a WebSocket server, use its server capability as the WebSocket layer within your existing application architecture.
  • When both sides of a feature need WebSocket communication, evaluate the client and server interfaces together so the application uses one package for both roles.
  • When standards-compliant WebSocket communication is a project requirement, assess faye-websocket as the protocol-focused client/server component and verify required behavior against its documentation.
  • When integrating WebSocket communication into an application with an existing framework or HTTP-server structure, use the documented server interface and keep framework-specific routing or lifecycle behavior in your application layer.
  • When package footprint is a consideration, compare the reported 27.7 kB unpacked size and 17.2 kB gzip bundle size with the constraints of your deployment target.
WHEN NOT TO USE
  • If the application only exchanges ordinary request-and-response HTTP data, use its existing HTTP client and server flow instead of introducing WebSocket connections.
  • If you require a documented framework-specific adapter, avoid assuming faye-websocket supplies one; choose a framework-integrated WebSocket layer or write and maintain the integration yourself.
  • If your implementation depends on particular event names, constructor signatures, or lifecycle hooks that you cannot verify in version 0.12.0 documentation, do not build against assumed APIs; confirm the interface first or select a tool with the required documented contract.
  • If the application needs a higher-level feature such as automatic reconnection or application-level message routing, and that behavior is not documented for faye-websocket, implement and test it separately or use a layer that explicitly provides it.
  • If your deployment requires a runtime or platform whose compatibility you have not verified, check the package's versioned support information before adoption or use a WebSocket implementation documented for that environment.
  • If a project requires a package with a different license, review the Apache-2.0 terms and select a dependency whose license meets the project's requirements.

CORRECTIONS

Spot wrong data here?

A short note helps us fix it.

Anonymous · No account · No email back

COMPARISONS 5
faye-websocket vs pusher ★ 292 · 767.4K/wk faye-websocket vs engine.io ★ 63.3K · 25.2M/wk faye-websocket vs socket.io ★ 63.3K · 25.8M/wk faye-websocket vs ably ★ 368 · 1.5M/wk faye-websocket vs ws ★ 22.8K · 419.1M/wk