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

Function waitFor

test/support/util.ts:92–96  ·  view source on GitHub ↗
(emitter, event)

Source from the content-addressed store, hash-verified

90}
91
92export function waitFor<T = unknown>(emitter, event) {
93 return new Promise<T>((resolve) => {
94 emitter.once(event, resolve);
95 });
96}
97
98// TODO: update superagent as latest release now supports promises
99export function eioHandshake(httpServer): Promise<string> {

Callers 3

messaging-many.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected