Skip to content

Commit 6782568

Browse files
committed
fix websocket to be as URL
1 parent 7496be3 commit 6782568

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

web/src/hcWebsockets.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ import { AppWebsocket, AdminWebsocket } from '@holochain/client'
33
// export for use by holochainMiddleware (redux)
44

55
// @ts-ignore
6-
export const APP_WS_URL = `ws://localhost:${__APP_PORT__}`
6+
export const APP_WS_URL = new URL(`ws://localhost:${__APP_PORT__}`)
77

88
// @ts-ignore
9-
const ADMIN_WS_URL = `ws://localhost:${__ADMIN_PORT__}`
9+
const ADMIN_WS_URL = new URL(`ws://localhost:${__ADMIN_PORT__}`)
1010

1111
let appWs: AppWebsocket
1212
let appWsPromise: Promise<AppWebsocket>

0 commit comments

Comments
 (0)