You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`@SocketController(namespace?: string)`| Registers a class to be a socket controller that can listen to websocket events and respond to them.|
428
+
| `@SocketController(namespace?: string|Regex)` | Registers a class to be a socket controller that can listen to websocket events and respond to them. |
415
429
|`@OnMessage(messageName: string)`| Registers controller's action to be executed when socket receives message with given name. |
416
430
|`@OnConnect()`| Registers controller's action to be executed when client connects to the socket. |
417
431
|`@OnDisconnect()`| Registers controller's action to be executed when client disconnects from the socket. |
@@ -421,7 +435,7 @@ export class MessageController {
421
435
|`@SocketQueryParam(paramName: string)`| Injects query parameter from the received socket request. |
422
436
|`@SocketId()`| Injects socket id from the received request. |
423
437
|`@SocketRequest()`| Injects request object received by socket. |
424
-
|`@SocketRooms()`| Injects rooms of the connected socket client. |
438
+
| `@SocketRooms()` | Injects rooms of the connected socket client. | | `@NspParams()` | Injects dynamic namespace params. | | `@NspParam(paramName: string)` | Injects param from the dynamic namespace. |
425
439
|`@Middleware()`| Registers a new middleware to be registered in the socket.io. |
426
440
|`@EmitOnSuccess(messageName: string)`| If this decorator is set then after controller action will emit message with the given name after action execution. It will emit message only if controller succeed without errors. If result is a Promise then it will wait until promise is resolved and emit a message. |
427
441
|`@EmitOnFail(messageName: string)`| If this decorator is set then after controller action will emit message with the given name after action execution. It will emit message only if controller throw an exception. If result is a Promise then it will wait until promise throw an error and emit a message. |
0 commit comments