socket-controllers icon indicating copy to clipboard operation
socket-controllers copied to clipboard

Use class-based controllers to handle websocket events.

Results 45 socket-controllers issues
Sort by recently updated
recently updated
newest added

### Description When i use useSocketServer(io) without controllers array in options i have error "Cannot read property 'filter' of undefined" **Minimal code-snippet showcasing the problem** ```ts useSocketServer(io); ``` In src/index.js:36...

type: fix
status: needs triage

Hi, is socket.io 3.0 support planned ?

type: question

can we use socket broadcast to room without OnMessage i need to broadcast a emit on post save use like notification

type: question

Would like to develop something like this.. ```ts @SocketController() export default class ChatSocketController { @UseBefore(AuthenticationMiddleware) @OnMessage('sendMessage') async sendMessage( @SocketRequest() req: SocketRequestWithPlayer, @SocketIO() io: Server) { // logic } ```

type: feature

### Description When sending a message that isn't proper JSON to a socket controller expecting a @MessageBody(), server throws an uncaught exception. **Minimal code-snippet showcasing the problem** ``` @SocketController('/chat') export...

type: fix

### Description The error handling usually more complex than just replying with an error that happened to every invalid scenario. The `@EmitOnFail` decorator should support defining different messages to emit...

type: feature

Hi, I discovered that NspParam(s) decorators crash if param is string. I checked the source code and I think it's most likely caused by one row in SocketControllerExecutor.ts. In function...

status: needs triage

Is there any chance to create an Authorized-Decorator like in routing controllers? Would be nice, if you could limit the connections to only authorized users (directly at connect or at...

type: feature

How i can use ssl for socket connection?

type: feature

please add socket.io ack support like ```typescript @OnMessage('some-message') @ReturnAck() action ( @ConnectedSocket() socket: SocketIO.Socket, @MessageBody() msg: any) { return "aa" } @OnMessage('some-message-error') @ReturnAck() action2 ( @ConnectedSocket() socket: SocketIO.Socket, @MessageBody() msg:...

type: feature