@cloudflare/realtimekit 2.0.2-staging.3 → 2.0.2-staging.5

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.
@@ -1964,9 +1964,11 @@ declare enum TransportState {
1964
1964
  type MediaConnectionState = {
1965
1965
  recv: {
1966
1966
  state: `${TransportState}`;
1967
+ sfuSessionId?: string;
1967
1968
  };
1968
1969
  send: {
1969
1970
  state: `${TransportState}`;
1971
+ sfuSessionId?: string;
1970
1972
  };
1971
1973
  };
1972
1974
 
@@ -2041,9 +2043,9 @@ declare enum TabChangeSource {
2041
2043
  Meeting = 1
2042
2044
  }
2043
2045
  interface MediaConnectionUpdate {
2044
- transport: 'consuming' | 'producing';
2046
+ transport: 'send' | 'recv';
2045
2047
  state: `${TransportState}`;
2046
- reconnected: boolean;
2048
+ sfuSessionId?: string;
2047
2049
  }
2048
2050
  type MetaEvents = {
2049
2051
  ['mediaConnectionUpdate']: (payload: MediaConnectionUpdate) => void;
@@ -4129,6 +4131,7 @@ type AllEvents = {
4129
4131
  [key in SessionEvents]: (payload?: any) => void;
4130
4132
  };
4131
4133
  type TypedEvents = {
4134
+ [SessionEvents.TRANSPORT_STATE_UPDATE]: (payload: MediaConnectionUpdate) => void;
4132
4135
  [SessionEvents.UPDATE_PERMISSIONS]: (p: PresetUpdates) => void;
4133
4136
  [SessionEvents.MAX_SPATIAL_LAYER_CHANGE]: (p: {
4134
4137
  peerId: string;