@decentnetwork/beagle-ui 0.2.2 → 0.2.3

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/beagle-ui.js CHANGED
@@ -3148,6 +3148,7 @@ function dkRtcSignalBus() {
3148
3148
  }
3149
3149
  }
3150
3150
  }
3151
+ const IDLE_POLL_MS = 400;
3151
3152
  async function pollLoop() {
3152
3153
  let cursor = null;
3153
3154
  while (!stopped) {
@@ -3176,6 +3177,9 @@ function dkRtcSignalBus() {
3176
3177
  }
3177
3178
  }
3178
3179
  }
3180
+ if (!signals.length) {
3181
+ await new Promise((res) => setTimeout(res, IDLE_POLL_MS));
3182
+ }
3179
3183
  }
3180
3184
  }
3181
3185
  const bus = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@decentnetwork/beagle-ui",
3
- "version": "0.2.2",
3
+ "version": "0.2.3",
4
4
  "description": "The Beagle chat UI, minus the machine it runs on — shared by the desktop install and the browser build.",
5
5
  "license": "MIT",
6
6
  "type": "module",