(options: { requestId: string })
| 632 | }; |
| 633 | |
| 634 | const closeWebSocketConnection = (options: { requestId: string }): void => { |
| 635 | const ws = WebSocketConnections.get(options.requestId); |
| 636 | if (!ws) { |
| 637 | return; |
| 638 | } |
| 639 | ws.close(); |
| 640 | }; |
| 641 | |
| 642 | const closeAllWebSocketConnections = (): void => WebSocketConnections.forEach(ws => ws.close()); |
| 643 |
no test coverage detected