@urun-sh/core 0.2.3 → 0.2.4

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/internal.mjs CHANGED
@@ -1 +1 @@
1
- import{a as e,b as r,c as o,d as t,e as a,g as n,h as p,i as s,j as m,l as c,m as i,n as f,o as x}from"./chunk-O4WPKVLL.mjs";export{e as ChannelMultiplexer,r as DeferredChannelMultiplexer,f as DeferredDocConnector,n as LoopbackStreamData,m as TransportSession,x as createPresence,i as createWebsocketDocConnector,c as deriveYjsServerUrl,a as ensureNodeWebRTC,o as isNodeRuntime,t as nodeMediasoupHandlerName,s as streamDataLabel,p as transportStreamData};
1
+ import{a as e,b as r,c as o,d as t,e as a,g as n,h as p,i as s,j as m,l as c,m as i,n as f,o as x}from"./chunk-QU4I4XC5.mjs";export{e as ChannelMultiplexer,r as DeferredChannelMultiplexer,f as DeferredDocConnector,n as LoopbackStreamData,m as TransportSession,x as createPresence,i as createWebsocketDocConnector,c as deriveYjsServerUrl,a as ensureNodeWebRTC,o as isNodeRuntime,t as nodeMediasoupHandlerName,s as streamDataLabel,p as transportStreamData};
@@ -328,6 +328,11 @@ interface Session {
328
328
 
329
329
  onPhase(handler: (phase: SessionPhase) => void): () => void;
330
330
 
331
+ whenLive(options?: {
332
+ timeout?: number;
333
+ signal?: AbortSignal;
334
+ }): Promise<void>;
335
+
331
336
  readonly recordings: RecordingsAccessor;
332
337
 
333
338
  readonly artifacts: RuntimeArtifactsAccessor;
@@ -551,14 +556,12 @@ declare class TransportSession {
551
556
  private _intentionalDisconnect;
552
557
  private _reconnectTimer;
553
558
 
559
+ private _cancelPendingDial;
560
+
554
561
  private _stableResetTimer;
555
562
  private _generation;
556
563
  private _lastStartOptions;
557
564
  private _resolveConnection;
558
- private _recvTransportMsg;
559
- private _lastConsumeMsg;
560
- private _recvConnectWatchdog;
561
- private _recvTcpFailoverDone;
562
565
  private _recvIceRestartAttempts;
563
566
  private _recvIceRestartTimer;
564
567
  private _sendIceRestartAttempts;
@@ -577,6 +580,14 @@ declare class TransportSession {
577
580
 
578
581
  private _mediaDeathHandled;
579
582
 
583
+ private _decodeSignalSeen;
584
+
585
+ private _lastFramesDecoded;
586
+
587
+ private _lastDecodeAdvanceAt;
588
+
589
+ private _decodeDeathHandled;
590
+
580
591
  private _currentEpoch;
581
592
 
582
593
  private _consumerId;
@@ -656,9 +667,6 @@ declare class TransportSession {
656
667
  private _onCreateRecvTransport;
657
668
 
658
669
  private _buildRecvTransport;
659
- private _clearRecvWatchdog;
660
-
661
- private _failoverRecvToTcp;
662
670
 
663
671
  private _tryRestartRecvIce;
664
672
  private _trySendIceRestart;
@@ -674,6 +682,10 @@ declare class TransportSession {
674
682
 
675
683
  private _onConsumeData;
676
684
  private _onConsume;
685
+
686
+ private _closeConsumer;
687
+
688
+ private _closeConsumersByProducer;
677
689
  private _mediaPollMs;
678
690
  private _mediaStallTimeoutMs;
679
691
 
@@ -681,6 +693,8 @@ declare class TransportSession {
681
693
  private _stopMediaMonitor;
682
694
  private _sampleMediaLiveness;
683
695
 
696
+ private _checkDecodeLiveness;
697
+
684
698
  private _renegotiate;
685
699
  private _attemptReconnect;
686
700
  private _connectUrls;
@@ -328,6 +328,11 @@ interface Session {
328
328
 
329
329
  onPhase(handler: (phase: SessionPhase) => void): () => void;
330
330
 
331
+ whenLive(options?: {
332
+ timeout?: number;
333
+ signal?: AbortSignal;
334
+ }): Promise<void>;
335
+
331
336
  readonly recordings: RecordingsAccessor;
332
337
 
333
338
  readonly artifacts: RuntimeArtifactsAccessor;
@@ -551,14 +556,12 @@ declare class TransportSession {
551
556
  private _intentionalDisconnect;
552
557
  private _reconnectTimer;
553
558
 
559
+ private _cancelPendingDial;
560
+
554
561
  private _stableResetTimer;
555
562
  private _generation;
556
563
  private _lastStartOptions;
557
564
  private _resolveConnection;
558
- private _recvTransportMsg;
559
- private _lastConsumeMsg;
560
- private _recvConnectWatchdog;
561
- private _recvTcpFailoverDone;
562
565
  private _recvIceRestartAttempts;
563
566
  private _recvIceRestartTimer;
564
567
  private _sendIceRestartAttempts;
@@ -577,6 +580,14 @@ declare class TransportSession {
577
580
 
578
581
  private _mediaDeathHandled;
579
582
 
583
+ private _decodeSignalSeen;
584
+
585
+ private _lastFramesDecoded;
586
+
587
+ private _lastDecodeAdvanceAt;
588
+
589
+ private _decodeDeathHandled;
590
+
580
591
  private _currentEpoch;
581
592
 
582
593
  private _consumerId;
@@ -656,9 +667,6 @@ declare class TransportSession {
656
667
  private _onCreateRecvTransport;
657
668
 
658
669
  private _buildRecvTransport;
659
- private _clearRecvWatchdog;
660
-
661
- private _failoverRecvToTcp;
662
670
 
663
671
  private _tryRestartRecvIce;
664
672
  private _trySendIceRestart;
@@ -674,6 +682,10 @@ declare class TransportSession {
674
682
 
675
683
  private _onConsumeData;
676
684
  private _onConsume;
685
+
686
+ private _closeConsumer;
687
+
688
+ private _closeConsumersByProducer;
677
689
  private _mediaPollMs;
678
690
  private _mediaStallTimeoutMs;
679
691
 
@@ -681,6 +693,8 @@ declare class TransportSession {
681
693
  private _stopMediaMonitor;
682
694
  private _sampleMediaLiveness;
683
695
 
696
+ private _checkDecodeLiveness;
697
+
684
698
  private _renegotiate;
685
699
  private _attemptReconnect;
686
700
  private _connectUrls;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@urun-sh/core",
3
- "version": "0.2.3",
3
+ "version": "0.2.4",
4
4
  "description": "Core transport and channel primitives for the urun TypeScript SDK",
5
5
  "repository": {
6
6
  "type": "git",