A Node.js WebSocket library providing a simple API for creating both WebSocket servers and clients. Version 6.0.3 is current, with a focus on ease of use and minimal configuration. It is actively maintained and suitable for real-time communication in Node.js applications. Compared to alternatives like ws or socket.io, qiao-ws offers a more straightforward interface but lacks advanced features such as reconnection or event-based messaging. Ideal for small projects or simple WebSocket integrations.
npm install qiao-wsNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Creates a WebSocket server on port 3000 and a client that connects to it.
Implement custom reconnection logic or use a wrapper library.
Always remove event listeners when they are no longer needed.
Use the newer EventEmitter pattern with on()/off().
Use import { WebSocketServer } from 'qiao-ws' instead of import qiaoWs from 'qiao-ws'.Change the port number or kill the process using that port.
No dependency data recorded yet.