{"library":"egg-websocket-plugin","type":"library","category":null,"description":"Official WebSocket plugin for the Egg.js framework (current version 3.0.0-beta.0). It integrates WebSocket endpoints into Egg's routing and controller system, supporting route parameters, app-level and route-level middleware, Redis pub/sub for broadcasting, and room-based messaging. Unlike socket.io, it does not require sticky sessions and directly wraps the ws library. It is compatible with Egg 3.x and ships TypeScript definitions. Release cadence is tied to Egg major versions; v3 corresponds to Egg 3.","language":"javascript","status":"active","version":"3.0.0-beta.0","tags":["javascript","egg","eggPlugin","egg-plugin","websocket","ws","typescript"],"last_verified":"Sun Jun 07","install":[{"cmd":"npm install egg-websocket-plugin","imports":["import { Controller } from 'egg';","app.ws.route('/ws', app.controller.home.hello);","app.ws.use(async (ctx, next) => { ... });"]},{"cmd":"yarn add egg-websocket-plugin","imports":[]},{"cmd":"pnpm add egg-websocket-plugin","imports":[]}],"homepage":"https://github.com/flarestart/egg-websocket-plugin#readme","github":"https://github.com/flarestart/egg-websocket-plugin","docs":null,"changelog":null,"pypi":null,"npm":"egg-websocket-plugin","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}