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\|Regex)`| Registers a class to be a socket controller that can listen to websocket events and respond to them. |
446
-
|`@OnMessage(messageName: string)`| Registers controller's action to be executed when socket receives message with given name. |
447
-
|`@OnConnect()`| Registers controller's action to be executed when client connects to the socket. |
448
-
|`@OnDisconnect()`| Registers controller's action to be executed when client disconnects from the socket. |
449
-
|`@ConnectedSocket()`| Injects connected client's socket object to the controller action. |
450
-
|`@SocketIO()`| Injects socket.io object that initialized a connection. |
451
-
|`@MessageBody()`| Injects received message body. |
452
-
|`@SocketQueryParam(paramName: string)`| Injects query parameter from the received socket request. |
453
-
|`@SocketId()`| Injects socket id from the received request. |
454
-
|`@SocketRequest()`| Injects request object received by socket. |
455
-
|`@SocketRooms()`| Injects rooms of the connected socket client. |
|`@NspParam(paramName: string)`| Injects param from the dynamic namespace. |
458
-
|`@Middleware()`| Registers a new middleware to be registered in the socket.io. |
459
-
|`@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. |
460
-
|`@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. |
461
-
|`@SkipEmitOnEmptyResult()`| Used in conjunction with @EmitOnSuccess and @EmitOnFail decorators. If result returned by controller action is null or undefined then messages will not be emitted by @EmitOnSuccess or @EmitOnFail decorators. ||
| `@SocketController(namespace?: string\| Regex)` | Registers a class to be a socket controller that can listen to websocket events and respond to them. |
470
+
|`@OnMessage(messageName: string)`| Registers controller's action to be executed when socket receives message with given name. |
471
+
|`@OnConnect()`| Registers controller's action to be executed when client connects to the socket. |
472
+
|`@OnDisconnect()`| Registers controller's action to be executed when client disconnects from the socket. |
473
+
|`@OnDisconnecting()`| Registers controller's action to be executed when client is disconnecting from the socket. |
474
+
|`@ConnectedSocket()`| Injects connected client's socket object to the controller action. |
475
+
|`@SocketIO()`| Injects socket.io object that initialized a connection. |
476
+
|`@MessageBody()`| Injects received message body. |
477
+
|`@SocketQueryParam(paramName: string)`| Injects query parameter from the received socket request. |
478
+
|`@SocketId()`| Injects socket id from the received request. |
479
+
|`@SocketRequest()`| Injects request object received by socket. |
480
+
|`@SocketRooms()`| Injects rooms of the connected socket client. |
|`@NspParam(paramName: string)`| Injects param from the dynamic namespace. |
483
+
|`@Middleware()`| Registers a new middleware to be registered in the socket.io. |
484
+
|`@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. |
485
+
|`@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. |
486
+
|`@SkipEmitOnEmptyResult()`| Used in conjunction with @EmitOnSuccess and @EmitOnFail decorators. If result returned by controller action is null or undefined then messages will not be emitted by @EmitOnSuccess or @EmitOnFail decorators. ||
0 commit comments