mirror of
https://github.com/hcengineering/platform.git
synced 2026-09-06 01:37:42 +02:00
Fix onConnect handler (#7265)
Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
This commit is contained in:
@@ -18,7 +18,7 @@ import config from './config'
|
||||
export async function createPlatformClient (
|
||||
workspace: string,
|
||||
timeout: number,
|
||||
reconnect?: (event: ClientConnectEvent) => void
|
||||
reconnect?: (event: ClientConnectEvent, data: any) => Promise<void>
|
||||
): Promise<Client> {
|
||||
setMetadata(client.metadata.ClientSocketFactory, (url) => {
|
||||
return new WebSocket(url, {
|
||||
|
||||
Reference in New Issue
Block a user