MCPcopy
hub / github.com/socketio/socket.io / timeout

Method timeout

packages/socket.io/lib/index.ts:1085–1087  ·  packages/socket.io/lib/index.ts::Server.timeout

* 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

1083 * @param timeout
1084 */
1085 public timeout(timeout: number) {
1086 return this.sockets.timeout(timeout);
1087 }
1088
1089 /**
1090 * Returns the matching socket instances.

Callers 15

socket.jsFile · 0.45
connection.jsFile · 0.45
binary-fallback.jsFile · 0.45
ws.jsFile · 0.45
polling.jsFile · 0.45
ws.jsFile · 0.45
polling.jsFile · 0.45
server.jsFile · 0.45
messaging-many.tsFile · 0.45
socket.tsFile · 0.45
socket-timeout.tsFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected