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

Function attach

packages/engine.io/lib/engine.io.ts:59–66  ·  packages/engine.io/lib/engine.io.ts::attach

* Captures upgrade requests for a http.Server. * * @param server * @param options * @return engine.io server

(
  server: HttpServer,
  options: AttachOptions & ServerOptions,
)

Source from the content-addressed store, hash-verified

57 */
58
59function attach(
60 server: HttpServer,
61 options: AttachOptions & ServerOptions,
62): Server {
63 const engine = new Server(options);
64 engine.attach(server, options);
65 return engine;
66}

Callers 5

initEngineMethod · 0.90
beforeAllFunction · 0.85
listenFunction · 0.85
engine.io.jsFile · 0.85
server.jsFile · 0.85

Calls 1

attachMethod · 0.95

Tested by

no test coverage detected