@rnzeus/heimdall-sdk 0.6.0 → 0.6.1

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.
@@ -1,4 +1,4 @@
1
1
  export const SOCKET = {
2
- MAX_EARLY_EVENTS: 50,
2
+ MAX_EARLY_EVENTS: 500,
3
3
  CONNECT_TIMEOUT_MS: 10000,
4
4
  };
@@ -14,8 +14,6 @@ export function disableCaptureEarlyEvents() {
14
14
  captureEarlyEvents = false;
15
15
  }
16
16
  export function pushEarlyEvent(payload) {
17
- if (!getCaptureEarlyEvents())
18
- return;
19
17
  earlyEvents.push(payload);
20
18
  if (earlyEvents.length > SOCKET.MAX_EARLY_EVENTS) {
21
19
  earlyEvents.shift();
@@ -13,7 +13,8 @@ export function sendEvent(payload) {
13
13
  return;
14
14
  }
15
15
  if (!socket || !connected) {
16
- // connect() was already called, but the socket is not ready — in v1 we don't buffer, just drop
16
+ // The handshake is still running: keep the event until the host accepts the session.
17
+ pushEarlyEvent(payload);
17
18
  return;
18
19
  }
19
20
  internalSendNetworkEvent(payload);
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.6.0";
1
+ export declare const SDK_VERSION = "0.6.1";
package/dist/version.js CHANGED
@@ -1 +1 @@
1
- export const SDK_VERSION = "0.6.0";
1
+ export const SDK_VERSION = "0.6.1";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rnzeus/heimdall-sdk",
3
- "version": "0.6.0",
3
+ "version": "0.6.1",
4
4
  "description": "React Native client for Heimdall — a desktop debug inspector for network, WebSocket, Zustand and console",
5
5
  "license": "MIT",
6
6
  "author": "Volodymyr Dudkevych",