* Sends a `message` event to all clients. Alias of {@link send}. * * @return self
(...args: EventParams<EmitEvents, "message">)
| 953 | * @return self |
| 954 | */ |
| 955 | public write(...args: EventParams<EmitEvents, "message">): this { |
| 956 | // This type-cast is needed because EmitEvents likely doesn't have `message` as a key. |
| 957 | // if you specify the EmitEvents, the type of args will be never. |
| 958 | this.sockets.emit("message" as any, ...args); |
| 959 | return this; |
| 960 | } |
| 961 | |
| 962 | /** |
| 963 | * Sends a message to the other Socket.IO servers of the cluster. |
no test coverage detected