@spacelr/sdk 0.18.3 → 0.18.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1348,7 +1348,11 @@ var RealtimeClient = class {
1348
1348
  // rejects on connect_error and they decide whether to retry. Once the
1349
1349
  // first authentication succeeds we re-enable it via the Manager's
1350
1350
  // setters (see authenticated handler).
1351
- reconnection: false
1351
+ reconnection: false,
1352
+ // #1000 — socket.io's 20 s default left a connect that hangs without
1353
+ // a close (browser offline mid-handshake) pending for 20 s before the
1354
+ // retry could start. Also applies to the later auto-reconnects.
1355
+ timeout: 5e3
1352
1356
  });
1353
1357
  this.socket = socket;
1354
1358
  const failInitialConnect = (message) => {