@urun-sh/core 0.2.11 → 0.2.13

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{A as f,B as x,C,D as l,a as e,b as r,q as o,r as t,s as a,u as n,v as p,w as s,x as m,y as c,z as i}from"./chunk-BSQZXFHN.mjs";export{e as ChannelMultiplexer,c as DOC_SYNC_WIRE_CONTRACT_VERSION,r as DeferredChannelMultiplexer,x as DeferredDocConnector,n as LoopbackStreamData,C as SessionDocumentImpl,m as TransportSession,l as createPresence,f as createWebsocketDocConnector,i as deriveYjsServerUrl,a as ensureNodeWebRTC,o as isNodeRuntime,t as nodeMediasoupHandlerName,s as streamDataLabel,p as transportStreamData};
2
+ import{A as f,B as x,C,D as l,a as e,b as r,q as o,r as t,s as a,u as n,v as p,w as s,x as m,y as c,z as i}from"./chunk-SHMKV7WG.mjs";export{e as ChannelMultiplexer,c as DOC_SYNC_WIRE_CONTRACT_VERSION,r as DeferredChannelMultiplexer,x as DeferredDocConnector,n as LoopbackStreamData,C as SessionDocumentImpl,m as TransportSession,l as createPresence,f as createWebsocketDocConnector,i as deriveYjsServerUrl,a as ensureNodeWebRTC,o as isNodeRuntime,t as nodeMediasoupHandlerName,s as streamDataLabel,p as transportStreamData};
@@ -378,6 +378,8 @@ interface Session {
378
378
 
379
379
  readonly presence: Presence;
380
380
 
381
+ touch(): void;
382
+
381
383
  request(payload: unknown, options?: RequestOptions): Promise<unknown>;
382
384
 
383
385
  requestStream(payload: unknown, options?: RequestStreamOptions): AsyncIterable<string>;
@@ -668,8 +670,6 @@ declare class TransportSession {
668
670
 
669
671
  private _consumerId;
670
672
 
671
- private _pendingStreamSubscribes;
672
-
673
673
  private _streamDataHandlers;
674
674
 
675
675
  private _dataProducers;
@@ -688,6 +688,8 @@ declare class TransportSession {
688
688
  get currentIncarnation(): number;
689
689
  get phase(): SessionPhase;
690
690
 
691
+ get isProducingMedia(): boolean;
692
+
691
693
  get endsAt(): Date | null;
692
694
 
693
695
  setEndsAt(endsAt: Date | null): void;
@@ -736,6 +738,9 @@ declare class TransportSession {
736
738
 
737
739
  private _streamNameFromLabel;
738
740
  addTrack(track: MediaStreamTrack, name?: string): Promise<void>;
741
+
742
+ private _publishTrack;
743
+ private _rememberPublishIntent;
739
744
  removeTrack(): void;
740
745
 
741
746
  addVideoTrack(track: MediaStreamTrack, name?: string): Promise<void>;
@@ -743,13 +748,6 @@ declare class TransportSession {
743
748
  stopVideo(): void;
744
749
  requestDiagnostics(): void;
745
750
  seekStream(name: string, target: number | 'live'): void;
746
-
747
- subscribeStream(name: string): void;
748
-
749
- unsubscribeStream(name: string): void;
750
- private _sendStreamSubscribe;
751
-
752
- private _flushStreamSubscribes;
753
751
  private _handleMessage;
754
752
 
755
753
  private _onServerError;
@@ -800,6 +798,8 @@ declare class TransportSession {
800
798
  private _startMessage;
801
799
  private _cleanupSocket;
802
800
 
801
+ private _replaceCurrentLegForReconnect;
802
+
803
803
  private _scheduleReconnectBudgetReset;
804
804
  private _clearReconnectBudgetReset;
805
805
 
@@ -378,6 +378,8 @@ interface Session {
378
378
 
379
379
  readonly presence: Presence;
380
380
 
381
+ touch(): void;
382
+
381
383
  request(payload: unknown, options?: RequestOptions): Promise<unknown>;
382
384
 
383
385
  requestStream(payload: unknown, options?: RequestStreamOptions): AsyncIterable<string>;
@@ -668,8 +670,6 @@ declare class TransportSession {
668
670
 
669
671
  private _consumerId;
670
672
 
671
- private _pendingStreamSubscribes;
672
-
673
673
  private _streamDataHandlers;
674
674
 
675
675
  private _dataProducers;
@@ -688,6 +688,8 @@ declare class TransportSession {
688
688
  get currentIncarnation(): number;
689
689
  get phase(): SessionPhase;
690
690
 
691
+ get isProducingMedia(): boolean;
692
+
691
693
  get endsAt(): Date | null;
692
694
 
693
695
  setEndsAt(endsAt: Date | null): void;
@@ -736,6 +738,9 @@ declare class TransportSession {
736
738
 
737
739
  private _streamNameFromLabel;
738
740
  addTrack(track: MediaStreamTrack, name?: string): Promise<void>;
741
+
742
+ private _publishTrack;
743
+ private _rememberPublishIntent;
739
744
  removeTrack(): void;
740
745
 
741
746
  addVideoTrack(track: MediaStreamTrack, name?: string): Promise<void>;
@@ -743,13 +748,6 @@ declare class TransportSession {
743
748
  stopVideo(): void;
744
749
  requestDiagnostics(): void;
745
750
  seekStream(name: string, target: number | 'live'): void;
746
-
747
- subscribeStream(name: string): void;
748
-
749
- unsubscribeStream(name: string): void;
750
- private _sendStreamSubscribe;
751
-
752
- private _flushStreamSubscribes;
753
751
  private _handleMessage;
754
752
 
755
753
  private _onServerError;
@@ -800,6 +798,8 @@ declare class TransportSession {
800
798
  private _startMessage;
801
799
  private _cleanupSocket;
802
800
 
801
+ private _replaceCurrentLegForReconnect;
802
+
803
803
  private _scheduleReconnectBudgetReset;
804
804
  private _clearReconnectBudgetReset;
805
805
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@urun-sh/core",
3
- "version": "0.2.11",
3
+ "version": "0.2.13",
4
4
  "description": "Core transport and channel primitives for the urun TypeScript SDK",
5
5
  "repository": {
6
6
  "type": "git",