{"library":"ws","type":"library","category":null,"description":"`ws` is a highly performant, thoroughly tested WebSocket client and server implementation designed specifically for Node.js environments. As of version 8.20.0, it provides robust support for the WebSocket protocol, including the permessage-deflate extension for compression and passing the extensive Autobahn test suite. It differentiates itself through its focus on speed, reliability, and full protocol compliance in Node.js. `ws` maintains an active release cadence, frequently addressing bug fixes, performance improvements, and minor features. It's crucial to note that `ws` is intended for backend Node.js applications; browser-based WebSocket clients should use the native `WebSocket` API or a wrapper like `isomorphic-ws`. The library offers both server and client capabilities, allowing Node.js to act as either endpoint in WebSocket communication.","language":"javascript","status":"active","version":"8.20.0","tags":["javascript","HyBi","Push","RFC-6455","WebSocket","WebSockets","real-time"],"last_verified":"Wed May 27","install":[{"cmd":"npm install ws","imports":["import WebSocket from 'ws'","import { WebSocketServer } from 'ws'","import { PerMessageDeflate } from 'ws'"]},{"cmd":"yarn add ws","imports":[]},{"cmd":"pnpm add ws","imports":[]}],"homepage":null,"github":"https://github.com/websockets/ws","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/ws","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/ws/compatibility"}}