* Adds a timeout in milliseconds for the next operation. * * @example * io.timeout(1000).emit("some-event", (err, responses) => { * if (err) { * // some clients did not acknowledge the event in the given delay * } else { * console.log(responses); // one response per
(timeout: number)
| 1083 | * @param timeout |
| 1084 | */ |
| 1085 | public timeout(timeout: number) { |
| 1086 | return this.sockets.timeout(timeout); |
| 1087 | } |
| 1088 | |
| 1089 | /** |
| 1090 | * Returns the matching socket instances. |
no outgoing calls
no test coverage detected