@marianmeres/webrtc 1.1.0 → 1.1.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.
@@ -853,6 +853,9 @@ export class WebRtcManager {
853
853
  // perform the signaling handshake (create offer/answer exchange) to
854
854
  // complete the reconnection.
855
855
  try {
856
+ // Clean up old connection and reset to IDLE so connect() creates a new PC
857
+ this.#cleanup();
858
+ this.#dispatch(WebRtcFsmEvent.RESET);
856
859
  await this.connect();
857
860
  // If successful, onconnectionstatechange will reset attempts
858
861
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@marianmeres/webrtc",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "type": "module",
5
5
  "main": "dist/mod.js",
6
6
  "types": "dist/mod.d.ts",