mirror of
https://github.com/MetaCubeX/metacubexd.git
synced 2024-12-26 19:24:12 +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 wsEndpointURL = () => endpoint()?.url.replace('http', 'ws')
|
||||
export const wsEndpointURL = () =>
|
||||
new URL(endpoint()?.url ?? '').origin.replace('http', 'ws')
|
||||
|
Loading…
x
Reference in New Issue
Block a user