mirror of
https://github.com/MetaCubeX/metacubexd.git
synced 2024-11-23 21:35:36 +08:00
fix(request): ws request url
This commit is contained in:
parent
2ebedcc1c9
commit
a13060a056
@ -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')
|
||||||
|
Loading…
Reference in New Issue
Block a user