mirror of
https://github.com/hcengineering/platform.git
synced 2024-12-23 03:22:19 +03:00
fix server url
Signed-off-by: Andrey Platov <andrey@hardcoreeng.com>
This commit is contained in:
parent
e4cc53966a
commit
2c60e39bae
@ -31,9 +31,9 @@ export default async () => {
|
||||
GetClient: async (token: string, endpoint: string): Promise<Client> => {
|
||||
if (client === undefined) {
|
||||
return await createClient((handler: TxHander) => {
|
||||
const url = `${endpoint}/${token}`
|
||||
console.log('connecting to', url)
|
||||
return connect(url, handler)
|
||||
const url = new URL(`/${token}`, endpoint)
|
||||
console.log('connecting to', url.href)
|
||||
return connect(url.href, handler)
|
||||
})
|
||||
}
|
||||
return client
|
||||
|
Loading…
Reference in New Issue
Block a user