MCPcopy Create free account
hub / github.com/block/buzz / normalizeRelayUrl

Function normalizeRelayUrl

desktop/src/features/workspaces/workspaceStorage.ts:81–86  ·  view source on GitHub ↗
(url: string)

Source from the content-addressed store, hash-verified

79}
80
81export function normalizeRelayUrl(url: string): string {
82 if (!url.startsWith("ws://") && !url.startsWith("wss://")) {
83 return `wss://${url}`;
84 }
85 return url;
86}
87
88export function deriveWorkspaceName(relayUrl: string): string {
89 try {

Callers 4

EditWorkspaceDialogFunction · 0.90
AddWorkspaceDialogFunction · 0.90
listenForDeepLinksFunction · 0.90
initFirstWorkspaceFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected