mirror of
https://github.com/MetaCubeX/metacubexd.git
synced 2024-11-10 05:15:35 +08:00
支持有路径的后端地址 (#649)
This commit is contained in:
parent
c78f58783f
commit
d148c1941e
@ -48,7 +48,7 @@ export const endpoint = () =>
|
||||
export const secret = () => endpoint()?.secret
|
||||
|
||||
export const wsEndpointURL = () =>
|
||||
new URL(endpoint()?.url ?? '').origin.replace('http', 'ws')
|
||||
new URL(endpoint()?.url ?? '').href.replace('http', 'ws')
|
||||
|
||||
export const useWsRequest = <T>(
|
||||
path: string,
|
||||
|
Loading…
Reference in New Issue
Block a user