MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / wsUrl

Function wsUrl

packages/server/test/host-origin.e2e.test.ts:84–86  ·  view source on GitHub ↗
(http: string)

Source from the content-addressed store, hash-verified

82}
83
84function wsUrl(http: string): string {
85 return http.replace(/^http:\/\//, 'ws://') + '/api/v1/ws';
86}
87
88/**
89 * Raw HTTP GET that lets us set an arbitrary `Host` header. Node's `fetch`

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected