core.getwebsocketurl
Home > @medplum/core > getWebSocketUrl
getWebSocketUrl() function
Concatenates a given base URL and path, ensuring the URL has the appropriate ws:// or wss:// protocol instead of http:// or https://.
Signature:
export declare function getWebSocketUrl(baseUrl: URL | string, path: string): string;
Parameters
Parameter  | Type  | Description  | 
|---|---|---|
baseUrl  | URL | string  | The base URL.  | 
path  | string  | The URL to concat. Can be relative or absolute.  | 
Returns:
string
The concatenated WebSocket URL.