@3dsource/angular-unreal-module 0.0.144 → 0.0.145

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@3dsource/angular-unreal-module",
3
- "version": "0.0.144",
3
+ "version": "0.0.145",
4
4
  "description": "Unreal module for connect with unreal engine stream",
5
5
  "keywords": [
6
6
  "3dsource",
@@ -94,7 +94,6 @@ declare class UnrealSceneComponent {
94
94
  private readonly commandsSender;
95
95
  private readonly videoService;
96
96
  private readonly webRtcPlayerService;
97
- private readonly signallingService;
98
97
  private readonly destroyRef;
99
98
  private readonly unrealConfig;
100
99
  private autoHighResolution;
@@ -1392,6 +1391,17 @@ declare class WebRtcPlayerService extends SubService {
1392
1391
  * Closes existing PeerConnection and DataChannel, resets negotiation state.
1393
1392
  */
1394
1393
  closePC(): void;
1394
+ /**
1395
+ * Single source of truth for tearing down the remote connection: closes the
1396
+ * signaling WebSocket and then the PeerConnection/DataChannel.
1397
+ *
1398
+ * Called by the `destroyRemoteConnections$` effect and, as a
1399
+ * lifecycle-independent safeguard, by `UnrealSceneComponent.onDestroy` (the
1400
+ * route-scoped effects may already be torn down on navigation). Both close
1401
+ * steps are idempotent, so invoking this twice in one teardown is a harmless
1402
+ * no-op.
1403
+ */
1404
+ releaseRemoteConnections(reason: DisconnectReasonType): void;
1395
1405
  canSend(): boolean | null;
1396
1406
  send(data: ArrayBuffer): void;
1397
1407
  /**