@urun-sh/core 0.5.6 → 0.6.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.
package/dist/internal.mjs CHANGED
@@ -1,2 +1,2 @@
1
1
  import { createRequire as __urunCreateRequire } from 'node:module'; const require = globalThis.require ?? __urunCreateRequire(import.meta.url);
2
- import{M as s,X as p,Y as c,Z as l,a as e,b as o,ca as m,da as i,ea as S,fa as f,ga as x,ha as C,ia as D,s as r,t,u as n,v as a}from"./chunk-JPBAXYWN.mjs";export{e as ChannelMultiplexer,i as DOC_SYNC_WIRE_CONTRACT_VERSION,o as DeferredChannelMultiplexer,x as DeferredDocConnector,p as LoopbackStreamData,C as SessionDocumentImpl,m as TransportSession,s as allocateSession,D as createPresence,f as createWebsocketDocConnector,S as deriveYjsServerUrl,a as ensureNodeWebRTC,r as isNodeRuntime,t as nodeMediasoupHandlerName,n as nodeWebRTCUnavailableReason,l as streamDataLabel,c as transportStreamData};
2
+ import{M as s,X as p,Y as c,Z as l,a as e,b as o,ca as m,da as i,ea as S,fa as f,ga as x,ha as C,ia as D,s as r,t,u as n,v as a}from"./chunk-6UCN2ZJF.mjs";import"./chunk-NLAOQUYQ.mjs";export{e as ChannelMultiplexer,i as DOC_SYNC_WIRE_CONTRACT_VERSION,o as DeferredChannelMultiplexer,x as DeferredDocConnector,p as LoopbackStreamData,C as SessionDocumentImpl,m as TransportSession,s as allocateSession,D as createPresence,f as createWebsocketDocConnector,S as deriveYjsServerUrl,a as ensureNodeWebRTC,r as isNodeRuntime,t as nodeMediasoupHandlerName,n as nodeWebRTCUnavailableReason,l as streamDataLabel,c as transportStreamData};
@@ -502,6 +502,10 @@ interface Session {
502
502
 
503
503
  readonly mediaTransport: 'webtransport' | 'webrtc' | null;
504
504
 
505
+ watchDownlinkStall(opts?: {
506
+ stallMs?: number;
507
+ }): () => void;
508
+
505
509
  readonly presence: Presence;
506
510
 
507
511
  touch(): void;
@@ -1011,6 +1015,10 @@ interface MediaSession {
1011
1015
  readonly firstMedia: Promise<void>;
1012
1016
 
1013
1017
  consumeDataStreams?(sink: WtDataLaneSink): void;
1018
+
1019
+ watchDownlinkStall?(opts: {
1020
+ stallMs?: number;
1021
+ }): void;
1014
1022
  }
1015
1023
 
1016
1024
  interface Signaling {
@@ -1234,6 +1242,21 @@ declare class TransportNegotiator {
1234
1242
  private wtOnlyLeg;
1235
1243
 
1236
1244
  private webRtcDialProceeded;
1245
+ static readonly WT_REDIAL_BASE_MS = 2000;
1246
+ static readonly WT_REDIAL_MAX = 3;
1247
+ static readonly WT_REDIAL_CAP_MS = 30000;
1248
+
1249
+ private wtRedialFailures;
1250
+ private wtRedialTimer;
1251
+
1252
+ private disconnected;
1253
+
1254
+ private downlinkStallWatch;
1255
+
1256
+ watchDownlinkStall(opts?: {
1257
+ stallMs?: number;
1258
+ }): void;
1259
+ private applyStallWatch;
1237
1260
  constructor(signaling: Signaling, sessionId: string, opts: NegotiatorOptions);
1238
1261
  get activeTransport(): MediaSession['kind'] | null;
1239
1262
 
@@ -1256,6 +1279,12 @@ declare class TransportNegotiator {
1256
1279
  private proceedWebRtcDial;
1257
1280
 
1258
1281
  private armFailover;
1282
+
1283
+ private redialWtAfterDeath;
1284
+
1285
+ private attemptWtRedial;
1286
+
1287
+ private lateWebRtcFailover;
1259
1288
  private notifyEstablished;
1260
1289
  }
1261
1290
 
@@ -502,6 +502,10 @@ interface Session {
502
502
 
503
503
  readonly mediaTransport: 'webtransport' | 'webrtc' | null;
504
504
 
505
+ watchDownlinkStall(opts?: {
506
+ stallMs?: number;
507
+ }): () => void;
508
+
505
509
  readonly presence: Presence;
506
510
 
507
511
  touch(): void;
@@ -1011,6 +1015,10 @@ interface MediaSession {
1011
1015
  readonly firstMedia: Promise<void>;
1012
1016
 
1013
1017
  consumeDataStreams?(sink: WtDataLaneSink): void;
1018
+
1019
+ watchDownlinkStall?(opts: {
1020
+ stallMs?: number;
1021
+ }): void;
1014
1022
  }
1015
1023
 
1016
1024
  interface Signaling {
@@ -1234,6 +1242,21 @@ declare class TransportNegotiator {
1234
1242
  private wtOnlyLeg;
1235
1243
 
1236
1244
  private webRtcDialProceeded;
1245
+ static readonly WT_REDIAL_BASE_MS = 2000;
1246
+ static readonly WT_REDIAL_MAX = 3;
1247
+ static readonly WT_REDIAL_CAP_MS = 30000;
1248
+
1249
+ private wtRedialFailures;
1250
+ private wtRedialTimer;
1251
+
1252
+ private disconnected;
1253
+
1254
+ private downlinkStallWatch;
1255
+
1256
+ watchDownlinkStall(opts?: {
1257
+ stallMs?: number;
1258
+ }): void;
1259
+ private applyStallWatch;
1237
1260
  constructor(signaling: Signaling, sessionId: string, opts: NegotiatorOptions);
1238
1261
  get activeTransport(): MediaSession['kind'] | null;
1239
1262
 
@@ -1256,6 +1279,12 @@ declare class TransportNegotiator {
1256
1279
  private proceedWebRtcDial;
1257
1280
 
1258
1281
  private armFailover;
1282
+
1283
+ private redialWtAfterDeath;
1284
+
1285
+ private attemptWtRedial;
1286
+
1287
+ private lateWebRtcFailover;
1259
1288
  private notifyEstablished;
1260
1289
  }
1261
1290