* Sends a `message` event to all clients. Alias of send. * * @return self
(...args: EventParams<EmitEvents, "message">)
| 865 | * @return self |
| 866 | */ |
| 867 | public write(...args: EventParams<EmitEvents, "message">): this { |
| 868 | // This type-cast is needed because EmitEvents likely doesn't have `message` as a key. |
| 869 | // if you specify the EmitEvents, the type of args will be never. |
| 870 | this.sockets.emit("message" as any, ...args); |
| 871 | return this; |
| 872 | } |
| 873 | |
| 874 | /** |
| 875 | * Sends a message to the other Socket.IO servers of the cluster. |
no test coverage detected