We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4d1234c commit 13ad415Copy full SHA for 13ad415
web/src/hcWebsockets.ts
@@ -31,7 +31,7 @@ export async function getAdminWs(): Promise<AdminWebsocket> {
31
export async function getAppWs(appWsUrl?: string, signalsHandler?: any): Promise<AppWebsocket> {
32
async function connect() {
33
// undefined is for default request timeout
34
- appWsPromise = AppWebsocket.connect(appWsUrl, undefined, signalsHandler)
+ appWsPromise = AppWebsocket.connect(appWsUrl ? appWsUrl : APP_WS_URL, undefined, signalsHandler)
35
appWs = await appWsPromise
36
appWsPromise = null
37
appWs.client.socket.addEventListener('close', async () => {
0 commit comments