{"library":"websocket-lib","type":"library","category":null,"description":"A lightweight WebSocket library for Node.js at version 3.3.0 (released 2023). It provides a simple API to create WebSocket servers and clients, with session-based event handling (data, close). The library supports both Node.js and browser environments. Key differentiators: minimal dependencies, straightforward stream-like API, and no external WebSocket library required (uses native 'net' and 'crypto' modules). Release cadence is sporadic, with the last update in 2023.","language":"javascript","status":"active","version":"3.3.0","tags":["javascript","websocket","ws","socket","stream","realtime"],"last_verified":"Sun Jun 07","install":[{"cmd":"npm install websocket-lib","imports":["import { createServer } from 'websocket-lib'","import { connect } from 'websocket-lib'","import ws from 'websocket-lib'"]},{"cmd":"yarn add websocket-lib","imports":[]},{"cmd":"pnpm add websocket-lib","imports":[]}],"homepage":"https://github.com/Lanfei/websocket-lib#readme","github":"https://github.com/Lanfei/websocket-lib","docs":null,"changelog":null,"pypi":null,"npm":"websocket-lib","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}