MCPcopy Create free account
hub / github.com/Noumena-Network/code / getNoumenaPlatformWebSocketBaseUrl

Function getNoumenaPlatformWebSocketBaseUrl

src/utils/platformUrls.ts:42–51  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

40}
41
42export function getNoumenaPlatformWebSocketBaseUrl(): string {
43 const baseUrl = getNoumenaPlatformBaseUrl()
44 if (baseUrl.startsWith('https://')) {
45 return `wss://${baseUrl.slice('https://'.length)}`
46 }
47 if (baseUrl.startsWith('http://')) {
48 return `ws://${baseUrl.slice('http://'.length)}`
49 }
50 return baseUrl
51}
52
53export function buildNoumenaPlatformUrl(path: string): string {
54 const normalizedPath = path.startsWith('/') ? path.slice(1) : path

Callers 3

connectVoiceStreamFunction · 0.85

Calls 1

Tested by

no test coverage detected