fix(request): ws request url

This commit is contained in:
Zephyruso 2023-09-06 18:56:57 +08:00
parent 2ebedcc1c9
commit a13060a056

View File

@ -35,4 +35,5 @@ export const endpoint = () =>
export const secret = () => endpoint()?.secret export const secret = () => endpoint()?.secret
export const wsEndpointURL = () => endpoint()?.url.replace('http', 'ws') export const wsEndpointURL = () =>
new URL(endpoint()?.url ?? '').origin.replace('http', 'ws')