download working

This commit is contained in:
2023-01-11 20:49:25 +01:00
parent b29cdf802d
commit 4d4582b3f7
8 changed files with 584 additions and 474 deletions

View File

@@ -106,5 +106,9 @@ export function toFormatArgs(codes: string[]): string {
}
export function getWebSocketEndpoint() {
return `${window.location.protocol}//${localStorage.getItem('server-addr') || window.location.hostname}:${localStorage.getItem('server-port') || window.location.port}`
return `ws://${localStorage.getItem('server-addr') || window.location.hostname}:${localStorage.getItem('server-port') || window.location.port}/ws-rpc`
}
export function getHttpRPCEndpoint() {
return `${window.location.protocol}//${localStorage.getItem('server-addr') || window.location.hostname}:${localStorage.getItem('server-port') || window.location.port}/http-rpc`
}