{"library":"socket-controllers","type":"library","category":null,"description":"A TypeScript library that provides class-based controllers for handling WebSocket events using decorators. Current stable version is 0.3.1. Developed by the TypeStack team, it allows organizing WebSocket handling in a structured, object-oriented manner similar to Express or routing-controllers. It relies on reflect-metadata and optionally a DI container like TypeDI. It supports socket.io and integrates well with TypeScript projects. Differentiators include declarative decorators (@OnConnect, @OnMessage) and automatic dependency injection.","language":"javascript","status":"active","version":"0.3.1","tags":["javascript","websocket","typescript","typescript-websocket","socket-controllers","socket.io","socket-server"],"last_verified":"Sun Jun 07","install":[{"cmd":"npm install socket-controllers","imports":["import { SocketControllers } from 'socket-controllers'","import { OnConnect } from 'socket-controllers'","import { OnMessage } from 'socket-controllers'","import { SocketController } from 'socket-controllers'","import { ConnectedSocket } from 'socket-controllers'","import { MessageBody } from 'socket-controllers'"]},{"cmd":"yarn add socket-controllers","imports":[]},{"cmd":"pnpm add socket-controllers","imports":[]}],"homepage":"https://github.com/pleerock/socket-controllers#readme","github":"https://github.com/pleerock/socket-controllers","docs":null,"changelog":null,"pypi":null,"npm":"socket-controllers","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}