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

Function waitFor

packages/socket.io/test/support/util.ts:91–95  ·  packages/socket.io/test/support/util.ts::waitFor
(emitter, event)

Source from the content-addressed store, hash-verified

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

Callers 3

messaging-many.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected