@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/CHANGELOG.md +19 -0
- package/dist/adapter/index.d.mts +41 -0
- package/dist/adapter/index.d.ts +41 -0
- package/dist/adapter/index.js +7 -0
- package/dist/adapter/index.mjs +2 -0
- package/dist/adapter/test-util.d.mts +32 -0
- package/dist/adapter/test-util.d.ts +32 -0
- package/dist/adapter/test-util.js +1 -0
- package/dist/adapter/test-util.mjs +2 -0
- package/dist/app-PYXBLQXD.mjs +2 -0
- package/dist/{chunk-JPBAXYWN.mjs → chunk-6UCN2ZJF.mjs} +5 -5
- package/dist/{chunk-5WV27LHH.mjs → chunk-AL3FYYQK.mjs} +2 -2
- package/dist/chunk-K2FMSSHL.mjs +2 -0
- package/dist/chunk-NLAOQUYQ.mjs +2 -0
- package/dist/index.browser.d.mts +40 -2
- package/dist/index.browser.d.ts +40 -2
- package/dist/index.browser.js +2 -2
- package/dist/index.browser.mjs +1 -1
- package/dist/index.d.mts +40 -2
- package/dist/index.d.ts +40 -2
- package/dist/index.js +5 -5
- package/dist/index.mjs +1 -1
- package/dist/internal.browser.d.mts +1 -1
- package/dist/internal.browser.d.ts +1 -1
- package/dist/internal.browser.js +2 -2
- package/dist/internal.browser.mjs +1 -1
- package/dist/internal.d.mts +1 -1
- package/dist/internal.d.ts +1 -1
- package/dist/internal.js +5 -5
- package/dist/internal.mjs +1 -1
- package/dist/{stream-data-s7maju0w.d.mts → stream-data-C4gkxwoJ.d.mts} +29 -0
- package/dist/{stream-data-s7maju0w.d.ts → stream-data-C4gkxwoJ.d.ts} +29 -0
- package/dist/stream-data-DWvEgRbF.d.mts +1746 -0
- package/dist/stream-data-DWvEgRbF.d.ts +1746 -0
- package/package.json +12 -2
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-
|
|
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
|
|