websocket-driver

JSON →
library 0.7.5 ·javascript maintenance
verified Jun 7, 2026

A complete WebSocket protocol implementation with pluggable I/O, extracted from the Faye project. Current stable version 0.7.5, released August 2020. Supports RFC 6455, draft-75, and draft-76. Handles handshake negotiation, subprotocol selection, extensions via websocket-extensions, message framing (text, binary, ping, pong, close), fragmentation, masking, and close handshake. Decouples protocol details from I/O, allowing use with HTTP servers (http.createServer) or raw TCP (net module). Typically used as a low-level library by higher-level WebSocket libraries like faye-websocket.