diff --git a/packages/@dcl/sdk/src/network-transport/client.ts b/packages/@dcl/sdk/src/network-transport/client.ts index c4f25dcce..9a41ed8ad 100644 --- a/packages/@dcl/sdk/src/network-transport/client.ts +++ b/packages/@dcl/sdk/src/network-transport/client.ts @@ -67,6 +67,9 @@ export async function createClientTransport({ serverUrl }: ClientTransportConfig console.error(e) reject(e) } + ws.onclose = () => { + reject(new Error('socket closed')) + } } catch (err) { reject(err) }