MCPcopy Create free account
hub / github.com/AsyncFuncAI/deepwiki-open / getWebSocketUrl

Function getWebSocketUrl

src/utils/websocketClient.ts:10–15  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

8
9// Convert HTTP URL to WebSocket URL
10const getWebSocketUrl = () => {
11 const baseUrl = SERVER_BASE_URL;
12 // Replace http:// with ws:// or https:// with wss://
13 const wsBaseUrl = baseUrl.replace(/^http/, 'ws');
14 return `${wsBaseUrl}/ws/chat`;
15};
16
17export interface ChatMessage {
18 role: 'user' | 'assistant' | 'system';

Callers 1

createChatWebSocketFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected