MCPcopy Create free account
hub / github.com/Kong/insomnia / closeWebSocketConnection

Function closeWebSocketConnection

packages/insomnia/src/main/network/websocket.ts:634–640  ·  view source on GitHub ↗
(options: { requestId: string })

Source from the content-addressed store, hash-verified

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

Callers 2

handleGraphQLWsMessageFunction · 0.85

Calls 2

closeMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected