@exchangedevlab/ws
v1.2.0
Published
Dependency-free WebSocket server (RFC 6455) — replaces the server side of the npm `ws` package
Readme
@exchangedevlab/ws
WebSocket server (RFC 6455) using only Node.js core modules. Drop-in for the server API of ws used by simple mock servers:
import { WebSocketServer } from "@exchangedevlab/ws";
const wss = new WebSocketServer({ port: 8787 });
wss.on("connection", (ws) => ws.on("message", (d) => ws.send(`echo ${d}`)));Masked client frames required, UTF-8 validated, maxPayload (1 MiB) and maxBufferedBytes (8 MiB) limits, optional verifyOrigin and path. No client mode, no compression.
One dependency: @exchangedevlab/core (same repository, same review). No install scripts. Source and review notes: https://github.com/robinhood-apply/vetted-packages
