{"library":"koa-websocket","type":"library","category":null,"description":"koa-websocket is a lightweight wrapper designed to integrate WebSocket functionality into Koa applications, providing a middleware handler that is compatible with `koa-route`. It leverages the popular `ws` library for its core WebSocket implementation. The package is currently at version 7.0.0 and has seen regular updates, including dependency upgrades to address security concerns and support newer Node.js versions. Key features include support for both `ws://` and `wss://` protocols, the ability to pass custom WebSocket server options, and seamless integration with Koa's middleware pattern via `app.ws.use`. It differentiates itself by offering a `koa-route`-like approach to WebSocket routing within the Koa ecosystem, simplifying the handling of WebSocket connections and messages alongside traditional HTTP routes, providing a structured way to build WebSocket-enabled Koa applications.","language":"javascript","status":"active","version":"7.0.0","tags":["javascript","koa","websockets","ws","sockets","routes"],"last_verified":"Wed May 27","install":[{"cmd":"npm install koa-websocket","imports":["import websockify from 'koa-websocket';","import Koa from 'koa';","import route from 'koa-route';"]},{"cmd":"yarn add koa-websocket","imports":[]},{"cmd":"pnpm add koa-websocket","imports":[]}],"homepage":null,"github":"https://github.com/kudos/koa-websocket","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/koa-websocket","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/koa-websocket/compatibility"}}