MCPcopy Index your code
hub / github.com/socketio/socket.io / timeout

Method timeout

lib/index.ts:997–999  ·  view source on GitHub ↗

* 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)

Source from the content-addressed store, hash-verified

995 * @param timeout
996 */
997 public timeout(timeout: number) {
998 return this.sockets.timeout(timeout);
999 }
1000
1001 /**
1002 * Returns the matching socket instances.

Callers 4

messaging-many.tsFile · 0.45
socket.tsFile · 0.45
socket-timeout.tsFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected