MCPcopy
hub / github.com/AsyncFuncAI/deepwiki-open / closeWebSocket

Function closeWebSocket

src/utils/websocketClient.ts:81–85  ·  view source on GitHub ↗
(ws: WebSocket | null)

Source from the content-addressed store, hash-verified

79 * @param ws The WebSocket connection to close
80 */
81export const closeWebSocket = (ws: WebSocket | null): void => {
82 if (ws && ws.readyState === WebSocket.OPEN) {
83 ws.close();
84 }
85};

Callers 3

AskFunction · 0.90
continueResearchFunction · 0.90
handleConfirmAskFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected