Skip to content

Commit 13ad415

Browse files
committed
use hardcoded WS url if not provided, for electron only
1 parent 4d1234c commit 13ad415

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

web/src/hcWebsockets.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export async function getAdminWs(): Promise<AdminWebsocket> {
3131
export async function getAppWs(appWsUrl?: string, signalsHandler?: any): Promise<AppWebsocket> {
3232
async function connect() {
3333
// undefined is for default request timeout
34-
appWsPromise = AppWebsocket.connect(appWsUrl, undefined, signalsHandler)
34+
appWsPromise = AppWebsocket.connect(appWsUrl ? appWsUrl : APP_WS_URL, undefined, signalsHandler)
3535
appWs = await appWsPromise
3636
appWsPromise = null
3737
appWs.client.socket.addEventListener('close', async () => {

0 commit comments

Comments
 (0)