peer-term 1.2.7 → 1.2.8

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/index.js +5 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "peer-term",
3
- "version": "1.2.7",
3
+ "version": "1.2.8",
4
4
  "license": "MIT",
5
5
  "description": "Share your terminal instantly using a 6-digit code. Encrypted. No config.",
6
6
  "keywords": [
package/src/index.js CHANGED
@@ -515,6 +515,11 @@ class Session {
515
515
  this.isClientConnected = true;
516
516
  this.missedPings = 0;
517
517
 
518
+ if (this.useDataChannel && this.webrtc && this.webrtc.isActive()) {
519
+ this.startHeartbeat();
520
+ break;
521
+ }
522
+
518
523
  await this._beginKeyExchange();
519
524
  break;
520
525
  }