MCPcopy
hub / github.com/nestjs/nest / getOneByConfig

Method getOneByConfig

packages/websockets/sockets-container.ts:14–19  ·  view source on GitHub ↗
(
    options: T,
  )

Source from the content-addressed store, hash-verified

12 }
13
14 public getOneByConfig<T extends GatewayMetadata = any>(
15 options: T,
16 ): ServerAndEventStreamsHost {
17 const uniqueToken = this.generateHashByOptions(options);
18 return this.serverAndEventStreamsHosts.get(uniqueToken)!;
19 }
20
21 public addOne<T extends GatewayMetadata = any>(
22 options: T,

Callers 2

scanForSocketServerMethod · 0.80
container.spec.tsFile · 0.80

Calls 2

generateHashByOptionsMethod · 0.95
getMethod · 0.65

Tested by

no test coverage detected