ws-low-level
JSON →A Promise-based, low-level WebSocket server library for Node.js. Version 1.0.2 provides core functions for handling WebSocket handshakes, sending/receiving messages, and constructing frames per RFC 6455. Unlike high-level wrappers like 'ws', this library gives direct access to raw frames, opcodes, and masking, making it suitable for custom implementations such as rate limiters, custom close messages, or WebSocket extensions. It uses async iterables for message consumption and has a moderate release cadence. Key differentiators: full control over WebSocket protocol details, no abstraction layers, and TypeScript support.
Resources
packagews-low-level ↗