mirror of
https://github.com/hcengineering/platform.git
synced 2026-08-26 22:32:23 +02:00
UBERF-9099: Rate limits (#7629)
Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
@@ -19,7 +19,7 @@ export async function createPlatformClient (
|
||||
workspace: string,
|
||||
timeout: number,
|
||||
reconnect?: (event: ClientConnectEvent, data: any) => Promise<void>
|
||||
): Promise<Client> {
|
||||
): Promise<{ client: Client, endpoint: string }> {
|
||||
setMetadata(client.metadata.ClientSocketFactory, (url) => {
|
||||
return new WebSocket(url, {
|
||||
headers: {
|
||||
@@ -45,5 +45,5 @@ export async function createPlatformClient (
|
||||
onConnect: reconnect
|
||||
})
|
||||
|
||||
return connection
|
||||
return { client: connection, endpoint }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user