(prefix: string, options?: GlobalPrefixOptions)
| 377 | } |
| 378 | |
| 379 | public setGlobalPrefix(prefix: string, options?: GlobalPrefixOptions): this { |
| 380 | this.config.setGlobalPrefix(prefix); |
| 381 | if (options) { |
| 382 | const exclude = options?.exclude |
| 383 | ? mapToExcludeRoute(options.exclude) |
| 384 | : []; |
| 385 | this.config.setGlobalPrefixOptions({ |
| 386 | ...options, |
| 387 | exclude, |
| 388 | }); |
| 389 | } |
| 390 | return this; |
| 391 | } |
| 392 | |
| 393 | public useWebSocketAdapter(adapter: WebSocketAdapter): this { |
| 394 | if (this.isWsModuleRegistered) { |
nothing calls this directly
no test coverage detected