@urun-sh/core 0.2.15 → 0.2.16

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 c,B as i,C as f,D as x,E as C,F as l,a as e,b as r,s as o,t,u as a,w as n,x as p,y as s,z as m}from"./chunk-RV6OTRCZ.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 c,B as i,C as f,D as x,E as C,F as l,a as e,b as r,s as o,t,u as a,w as n,x as p,y as s,z as m}from"./chunk-GKS24GDI.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};
@@ -586,6 +586,8 @@ interface TransportEvents {
586
586
  phase: (phase: SessionPhase) => void;
587
587
 
588
588
  seeked: (stream: string, target: number | 'live') => void;
589
+
590
+ signal: (msg: Record<string, unknown>) => void;
589
591
  }
590
592
  interface SessionStartOptions {
591
593
  app?: string;
@@ -720,6 +722,10 @@ declare class TransportSession {
720
722
  on<E extends keyof TransportEvents>(event: E, handler: TransportEvents[E]): () => void;
721
723
  sendInput(data: Record<string, unknown>, sequence?: number): void;
722
724
 
725
+ sendSignal(msg: Record<string, unknown>): void;
726
+
727
+ onSignal(handler: (msg: Record<string, unknown>) => void): () => void;
728
+
723
729
  onStreamData(name: string, handler: (payload: unknown) => void): () => void;
724
730
 
725
731
  sendStreamData(name: string, payload: unknown, _options?: {
@@ -586,6 +586,8 @@ interface TransportEvents {
586
586
  phase: (phase: SessionPhase) => void;
587
587
 
588
588
  seeked: (stream: string, target: number | 'live') => void;
589
+
590
+ signal: (msg: Record<string, unknown>) => void;
589
591
  }
590
592
  interface SessionStartOptions {
591
593
  app?: string;
@@ -720,6 +722,10 @@ declare class TransportSession {
720
722
  on<E extends keyof TransportEvents>(event: E, handler: TransportEvents[E]): () => void;
721
723
  sendInput(data: Record<string, unknown>, sequence?: number): void;
722
724
 
725
+ sendSignal(msg: Record<string, unknown>): void;
726
+
727
+ onSignal(handler: (msg: Record<string, unknown>) => void): () => void;
728
+
723
729
  onStreamData(name: string, handler: (payload: unknown) => void): () => void;
724
730
 
725
731
  sendStreamData(name: string, payload: unknown, _options?: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@urun-sh/core",
3
- "version": "0.2.15",
3
+ "version": "0.2.16",
4
4
  "description": "Core transport and channel primitives for the urun TypeScript SDK",
5
5
  "repository": {
6
6
  "type": "git",
@@ -99,6 +99,7 @@
99
99
  },
100
100
  "license": "MIT",
101
101
  "dependencies": {
102
+ "@msgpack/msgpack": "^3.1.2",
102
103
  "debug": "^4.4.3",
103
104
  "y-protocols": "1.0.7",
104
105
  "y-websocket": "3.0.0",