MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / parseGatewayNamespace

Function parseGatewayNamespace

src/resolution/frameworks/nestjs.ts:700–703  ·  view source on GitHub ↗

`@WebSocketGateway({ namespace: 'chat' })` | `@WebSocketGateway(81, { namespace: '/chat' })` | `@WebSocketGateway()`.

(args: string)

Source from the content-addressed store, hash-verified

698
699/** `@WebSocketGateway({ namespace: 'chat' })` | `@WebSocketGateway(81, { namespace: '/chat' })` | `@WebSocketGateway()`. */
700function parseGatewayNamespace(args: string): string {
701 const m = args.match(/namespace\s*:\s*['"`]([^'"`]*)['"`]/);
702 return m ? m[1]! : '';
703}
704
705/**
706 * GraphQL operation name. Prefers an explicit `{ name: 'x' }` or a leading

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected