A simple WebSocket server library for Node.js that provides both high-level connection handling and low-level frame manipulation. Current stable version is 0.2.1. It allows custom authentication via an optional auth callback and supports both string and binary data frames. Compared to alternatives like ws or Socket.IO, easy-websocket offers a minimal API but lacks advanced features like reconnection, automatic JSON parsing, and client-side support.
npm install easy-websocketNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Creates a simple HTTP server that serves an HTML file and upgrades connections to WebSocket using easy-websocket.
Consider using a more actively maintained WebSocket library like 'ws' or 'socket.io'.
Use require() instead of import.
Use require('easy-websocket/websocket') for low-level WebSocket handling.Use @types/easy-websocket if available, or define your own types.
Change to require('easy-websocket/websocket')Use const websocket = require('easy-websocket');In browser code, use the native WebSocket API directly. For server code, ensure you are using Node.js and the correct require path.
No dependency data recorded yet.