Function: getWsUrlForWsKey()
ts
function getWsUrlForWsKey(
wsKey: WsKey,
wsClientOptions: WebsocketClientOptions,
logger: object
): string;Maps a WS key back to a WS URL. Resolves to demo wsKey automatically, if configured.
Parameters
| Parameter | Type | Description |
|---|---|---|
wsKey | WsKey | - |
wsClientOptions | WebsocketClientOptions | - |
logger | { error: (...params: any) => void; info: (...params: any) => void; trace: (..._params: any) => void; } | - |
logger.error? | (...params: any) => void | - |
logger.info? | (...params: any) => void | - |
logger.trace? | (..._params: any) => void | Ping/pong events and other raw messages that might be noisy. Enable this while troubleshooting. |
Returns
string