@cloudflare/realtimekit 2.0.2-staging.4 → 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.
- package/dist/EncryptionManager.d.ts +5 -2
- package/dist/browser.js +11 -11
- package/dist/dependencies.txt +1 -1
- package/dist/index.cjs.js +8 -8
- package/dist/index.d.ts +5 -2
- package/dist/index.es.js +2178 -2157
- package/dist/index.es5.js +3023 -3021
- package/dist/index.rn.js +8 -8
- package/dist/ts3.4/dist/EncryptionManager.d.ts +5 -2
- package/dist/ts3.4/dist/index.d.ts +5 -2
- package/package.json +1 -1
|
@@ -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: '
|
|
2046
|
+
transport: 'send' | 'recv';
|
|
2045
2047
|
state: `${TransportState}`;
|
|
2046
|
-
|
|
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;
|