MCPcopy Create free account
hub / github.com/Kilo-Org/cloud / connectUrlFor

Function connectUrlFor

packages/event-service/src/client.ts:43–48  ·  view source on GitHub ↗
(wsBase: string, ticket: string)

Source from the content-addressed store, hash-verified

41 return url.toString();
42}
43
44function connectUrlFor(wsBase: string, ticket: string): string {
45 const url = baseUrlWithPath(wsBase, 'connect');
46 if (url.protocol === 'http:') {
47 url.protocol = 'ws:';
48 } else if (url.protocol === 'https:') {
49 url.protocol = 'wss:';
50 }
51 const query = { ticket } satisfies ConnectTicketQuery;

Callers 1

connectOnceMethod · 0.85

Calls 3

baseUrlWithPathFunction · 0.85
setMethod · 0.65
toStringMethod · 0.65

Tested by

no test coverage detected