@whereby.com/core 0.7.0 → 0.8.0
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/cjs/index.cjs +3188 -0
- package/dist/cjs/utils.cjs +113 -0
- package/dist/index.d.ts +1539 -530
- package/dist/index.mjs +2998 -0
- package/dist/utils.d.ts +0 -10
- package/dist/{utils.js → utils.mjs} +20 -3
- package/package.json +10 -10
- package/dist/debounce-B-cWYxqK.js +0 -20
- package/dist/index.js +0 -9579
package/dist/index.d.ts
CHANGED
|
@@ -3,14 +3,11 @@ import { PayloadAction, ActionCreatorWithPayload, AsyncThunkPayloadCreator, Asyn
|
|
|
3
3
|
import * as redux_thunk from 'redux-thunk';
|
|
4
4
|
import * as redux from 'redux';
|
|
5
5
|
import * as reselect from 'reselect';
|
|
6
|
-
import * as
|
|
7
|
-
import
|
|
6
|
+
import * as _whereby_com_media from '@whereby.com/media';
|
|
7
|
+
import { ChatMessage as ChatMessage$1, getDeviceData, RtcStreamAddedPayload, RtcEvents, RtcManager, RtcManagerDispatcher, RtcManagerCreatedPayload, ServerSocket } from '@whereby.com/media';
|
|
8
8
|
import { AsyncThunkFulfilledActionCreator } from '@reduxjs/toolkit/dist/createAsyncThunk';
|
|
9
|
-
import { getDeviceData } from '@whereby/jslib-media/src/webrtc/MediaDevices';
|
|
10
|
-
import RtcManagerDispatcher, { RtcStreamAddedPayload, RtcEvents, RtcManagerCreatedPayload } from '@whereby/jslib-media/src/webrtc/RtcManagerDispatcher';
|
|
11
|
-
import RtcManager from '@whereby/jslib-media/src/webrtc/RtcManager';
|
|
12
9
|
import { AxiosRequestConfig } from 'axios';
|
|
13
|
-
import EventEmitter from 'events';
|
|
10
|
+
import EventEmitter$1 from 'events';
|
|
14
11
|
|
|
15
12
|
type Json = string | number | boolean | null | Array<Json> | {
|
|
16
13
|
[key: string]: Json;
|
|
@@ -219,31 +216,19 @@ interface Screenshare {
|
|
|
219
216
|
isLocal: boolean;
|
|
220
217
|
}
|
|
221
218
|
|
|
222
|
-
/**
|
|
223
|
-
* Reducer
|
|
224
|
-
*/
|
|
225
219
|
interface WaitingParticipantsState {
|
|
226
220
|
waitingParticipants: WaitingParticipant[];
|
|
227
221
|
}
|
|
228
222
|
declare const waitingParticipantsSlice: _reduxjs_toolkit.Slice<WaitingParticipantsState, {}, "waitingParticipants", "waitingParticipants", _reduxjs_toolkit.SliceSelectors<WaitingParticipantsState>>;
|
|
229
|
-
/**
|
|
230
|
-
* Action creators
|
|
231
|
-
*/
|
|
232
223
|
declare const doAcceptWaitingParticipant: (args: {
|
|
233
224
|
participantId: string;
|
|
234
225
|
}) => AppThunk<void>;
|
|
235
226
|
declare const doRejectWaitingParticipant: (args: {
|
|
236
227
|
participantId: string;
|
|
237
228
|
}) => AppThunk<void>;
|
|
238
|
-
/**
|
|
239
|
-
* Selectors
|
|
240
|
-
*/
|
|
241
229
|
declare const selectWaitingParticipantsRaw: (state: RootState) => WaitingParticipantsState;
|
|
242
230
|
declare const selectWaitingParticipants: (state: RootState) => WaitingParticipant[];
|
|
243
231
|
|
|
244
|
-
/**
|
|
245
|
-
* Reducer
|
|
246
|
-
*/
|
|
247
232
|
interface StreamingState {
|
|
248
233
|
isStreaming: boolean;
|
|
249
234
|
error: unknown;
|
|
@@ -269,14 +254,8 @@ declare const streamingSlice: _reduxjs_toolkit.Slice<StreamingState, {
|
|
|
269
254
|
startedAt?: number | undefined;
|
|
270
255
|
};
|
|
271
256
|
}, "streaming", "streaming", _reduxjs_toolkit.SliceSelectors<StreamingState>>;
|
|
272
|
-
/**
|
|
273
|
-
* Action creators
|
|
274
|
-
*/
|
|
275
257
|
declare const doHandleStreamingStarted: _reduxjs_toolkit.ActionCreatorWithoutPayload<"streaming/doHandleStreamingStarted">;
|
|
276
258
|
declare const doHandleStreamingStopped: _reduxjs_toolkit.ActionCreatorWithoutPayload<"streaming/doHandleStreamingStopped">;
|
|
277
|
-
/**
|
|
278
|
-
* Selectors
|
|
279
|
-
*/
|
|
280
259
|
declare const selectStreamingRaw: (state: RootState) => StreamingState;
|
|
281
260
|
|
|
282
261
|
type RtcAnalyticsCustomEvent = {
|
|
@@ -288,9 +267,6 @@ type RtcAnalyticsCustomEvent = {
|
|
|
288
267
|
declare const rtcAnalyticsCustomEvents: {
|
|
289
268
|
[key: string]: RtcAnalyticsCustomEvent;
|
|
290
269
|
};
|
|
291
|
-
/**
|
|
292
|
-
* Reducer
|
|
293
|
-
*/
|
|
294
270
|
interface rtcAnalyticsState {
|
|
295
271
|
reportedValues: {
|
|
296
272
|
[key: string]: unknown;
|
|
@@ -311,9 +287,6 @@ declare const rtcAnalyticsSlice: _reduxjs_toolkit.Slice<rtcAnalyticsState, {
|
|
|
311
287
|
};
|
|
312
288
|
}, "rtcAnalytics", "rtcAnalytics", _reduxjs_toolkit.SliceSelectors<rtcAnalyticsState>>;
|
|
313
289
|
declare const doRtcAnalyticsCustomEventsInitialize: (args: void) => AppThunk<void>;
|
|
314
|
-
/**
|
|
315
|
-
* Action creators
|
|
316
|
-
*/
|
|
317
290
|
declare const updateReportedValues: ActionCreatorWithPayload<{
|
|
318
291
|
rtcEventName: string;
|
|
319
292
|
value: unknown;
|
|
@@ -324,9 +297,6 @@ interface LocalScreenshareState {
|
|
|
324
297
|
stream: MediaStream | null;
|
|
325
298
|
error: unknown | null;
|
|
326
299
|
}
|
|
327
|
-
/**
|
|
328
|
-
* Reducer
|
|
329
|
-
*/
|
|
330
300
|
declare const localScreenshareSlice: _reduxjs_toolkit.Slice<LocalScreenshareState, {
|
|
331
301
|
stopScreenshare(state: {
|
|
332
302
|
status: "" | "starting" | "active";
|
|
@@ -361,9 +331,6 @@ declare const localScreenshareSlice: _reduxjs_toolkit.Slice<LocalScreenshareStat
|
|
|
361
331
|
error: unknown | null;
|
|
362
332
|
};
|
|
363
333
|
}, "localScreenshare", "localScreenshare", _reduxjs_toolkit.SliceSelectors<LocalScreenshareState>>;
|
|
364
|
-
/**
|
|
365
|
-
* Action creators
|
|
366
|
-
*/
|
|
367
334
|
declare const stopScreenshare: _reduxjs_toolkit.ActionCreatorWithPayload<{
|
|
368
335
|
stream: MediaStream;
|
|
369
336
|
}, "localScreenshare/stopScreenshare">;
|
|
@@ -371,9 +338,6 @@ declare const doStartScreenshare: _reduxjs_toolkit.AsyncThunk<{
|
|
|
371
338
|
stream: MediaStream;
|
|
372
339
|
}, undefined, ThunkConfig>;
|
|
373
340
|
declare const doStopScreenshare: (args: void) => AppThunk<void>;
|
|
374
|
-
/**
|
|
375
|
-
* Selectors
|
|
376
|
-
*/
|
|
377
341
|
declare const selectLocalScreenshareRaw: (state: RootState) => LocalScreenshareState;
|
|
378
342
|
declare const selectLocalScreenshareStatus: (state: RootState) => "" | "starting" | "active";
|
|
379
343
|
declare const selectLocalScreenshareStream: (state: RootState) => MediaStream | null;
|
|
@@ -443,9 +407,6 @@ declare const selectLocalParticipantClientClaim: (state: RootState) => string |
|
|
|
443
407
|
declare const selectLocalParticipantRole: (state: RootState) => string;
|
|
444
408
|
declare const selectLocalParticipantIsScreenSharing: (state: RootState) => boolean;
|
|
445
409
|
|
|
446
|
-
/**
|
|
447
|
-
* Reducer
|
|
448
|
-
*/
|
|
449
410
|
interface CloudRecordingState {
|
|
450
411
|
isRecording: boolean;
|
|
451
412
|
error: unknown;
|
|
@@ -466,15 +427,9 @@ declare const cloudRecordingSlice: _reduxjs_toolkit.Slice<CloudRecordingState, {
|
|
|
466
427
|
startedAt?: number | undefined;
|
|
467
428
|
};
|
|
468
429
|
}, "cloudRecording", "cloudRecording", _reduxjs_toolkit.SliceSelectors<CloudRecordingState>>;
|
|
469
|
-
/**
|
|
470
|
-
* Action creators
|
|
471
|
-
*/
|
|
472
430
|
declare const recordingRequestStarted: _reduxjs_toolkit.ActionCreatorWithoutPayload<"cloudRecording/recordingRequestStarted">;
|
|
473
431
|
declare const doStartCloudRecording: (args: void) => AppThunk<void>;
|
|
474
432
|
declare const doStopCloudRecording: (args: void) => AppThunk<void>;
|
|
475
|
-
/**
|
|
476
|
-
* Selectors
|
|
477
|
-
*/
|
|
478
433
|
declare const selectCloudRecordingRaw: (state: RootState) => CloudRecordingState;
|
|
479
434
|
declare const selectCloudRecordingStatus: (state: RootState) => "error" | "recording" | "requested" | undefined;
|
|
480
435
|
declare const selectCloudRecordingStartedAt: (state: RootState) => number | undefined;
|
|
@@ -482,28 +437,16 @@ declare const selectCloudRecordingError: (state: RootState) => unknown;
|
|
|
482
437
|
declare const selectIsCloudRecording: (state: RootState) => boolean;
|
|
483
438
|
|
|
484
439
|
type ChatMessage = Pick<ChatMessage$1, "senderId" | "timestamp" | "text">;
|
|
485
|
-
/**
|
|
486
|
-
* Reducer
|
|
487
|
-
*/
|
|
488
440
|
interface ChatState {
|
|
489
441
|
chatMessages: ChatMessage[];
|
|
490
442
|
}
|
|
491
443
|
declare const chatSlice: _reduxjs_toolkit.Slice<ChatState, {}, "chat", "chat", _reduxjs_toolkit.SliceSelectors<ChatState>>;
|
|
492
|
-
/**
|
|
493
|
-
* Action creators
|
|
494
|
-
*/
|
|
495
444
|
declare const doSendChatMessage: (args: {
|
|
496
445
|
text: string;
|
|
497
446
|
}) => AppThunk<void>;
|
|
498
|
-
/**
|
|
499
|
-
* Selectors
|
|
500
|
-
*/
|
|
501
447
|
declare const selectChatRaw: (state: RootState) => ChatState;
|
|
502
448
|
declare const selectChatMessages: (state: RootState) => ChatMessage[];
|
|
503
449
|
|
|
504
|
-
/**
|
|
505
|
-
* Reducer
|
|
506
|
-
*/
|
|
507
450
|
interface AppState {
|
|
508
451
|
isNodeSdk: boolean;
|
|
509
452
|
wantsToJoin: boolean;
|
|
@@ -582,9 +525,6 @@ declare const appSlice: _reduxjs_toolkit.Slice<AppState, {
|
|
|
582
525
|
externalId: string | null;
|
|
583
526
|
};
|
|
584
527
|
}, "app", "app", _reduxjs_toolkit.SliceSelectors<AppState>>;
|
|
585
|
-
/**
|
|
586
|
-
* Action creators
|
|
587
|
-
*/
|
|
588
528
|
declare const doAppJoin: _reduxjs_toolkit.ActionCreatorWithPayload<{
|
|
589
529
|
isNodeSdk?: boolean | undefined;
|
|
590
530
|
displayName: string;
|
|
@@ -596,9 +536,6 @@ declare const doAppJoin: _reduxjs_toolkit.ActionCreatorWithPayload<{
|
|
|
596
536
|
}, "app/doAppJoin">;
|
|
597
537
|
declare const appLeft: _reduxjs_toolkit.ActionCreatorWithoutPayload<"app/appLeft">;
|
|
598
538
|
declare const setRoomKey: _reduxjs_toolkit.ActionCreatorWithPayload<string, "app/setRoomKey">;
|
|
599
|
-
/**
|
|
600
|
-
* Selectors
|
|
601
|
-
*/
|
|
602
539
|
declare const selectAppRaw: (state: RootState) => AppState;
|
|
603
540
|
declare const selectAppWantsToJoin: (state: RootState) => boolean;
|
|
604
541
|
declare const selectAppRoomName: (state: RootState) => string | null;
|
|
@@ -615,53 +552,21 @@ type HttpClientRequestConfig = AxiosRequestConfig | {
|
|
|
615
552
|
interface IHttpClient {
|
|
616
553
|
request(url: string, options: HttpClientRequestConfig): Promise<Response>;
|
|
617
554
|
}
|
|
618
|
-
/**
|
|
619
|
-
* Class used for making http calls. This is just a pure
|
|
620
|
-
* wrapper around the http lib that we decide to use,
|
|
621
|
-
* so that we can switch implementations.
|
|
622
|
-
*/
|
|
623
555
|
declare class HttpClient implements IHttpClient {
|
|
624
556
|
_baseUrl: string;
|
|
625
|
-
/**
|
|
626
|
-
* Creates an HttpClient instance.
|
|
627
|
-
*
|
|
628
|
-
* @param {string} [baseUrl] - The base URL where all requests are made.
|
|
629
|
-
*/
|
|
630
557
|
constructor({ baseUrl }: {
|
|
631
558
|
baseUrl: string;
|
|
632
559
|
});
|
|
633
560
|
private _requestAxios;
|
|
634
|
-
/**
|
|
635
|
-
* Wrapper for the axios API
|
|
636
|
-
*
|
|
637
|
-
* @param {string} url - Required. URL (appended to base URL) where API call will be made
|
|
638
|
-
* @param {object} options - Required. Contains the data needed for the fetch API
|
|
639
|
-
* @return {Promise<Response>} - A promise which will return a Response object (https://developer.mozilla.org/en-US/docs/Web/API/Response)
|
|
640
|
-
*/
|
|
641
561
|
request(url: string, options: HttpClientRequestConfig): Promise<Response>;
|
|
642
562
|
}
|
|
643
563
|
|
|
644
|
-
/**
|
|
645
|
-
* ApiClient for doing multipart/form-data requests.
|
|
646
|
-
*/
|
|
647
564
|
declare class MultipartHttpClient implements IHttpClient {
|
|
648
565
|
_httpClient: IHttpClient;
|
|
649
566
|
constructor({ httpClient }: {
|
|
650
567
|
httpClient: IHttpClient;
|
|
651
568
|
});
|
|
652
|
-
/**
|
|
653
|
-
* Convert the provided object to a FormData object containing the same keys and values.
|
|
654
|
-
* @param {object} data - the data to convert.
|
|
655
|
-
* @returns {FormData}
|
|
656
|
-
*/
|
|
657
569
|
static dataToFormData(data: Record<string, string>): FormData;
|
|
658
|
-
/**
|
|
659
|
-
* Request a resource using multipart/form-data encoding.
|
|
660
|
-
*
|
|
661
|
-
* @param {string} url - the url to request
|
|
662
|
-
* @param {object} options - Required. Contains the data needed for the fetch API
|
|
663
|
-
* @return {Promise<Response>} - A promise which will return a Response object (https://developer.mozilla.org/en-US/docs/Web/API/Response)
|
|
664
|
-
*/
|
|
665
570
|
request(url: string, options?: HttpClientRequestConfig): Promise<Response>;
|
|
666
571
|
}
|
|
667
572
|
|
|
@@ -695,40 +600,19 @@ interface ApiClientOptions {
|
|
|
695
600
|
baseUrl?: string;
|
|
696
601
|
fetchDeviceCredentials?: AuthenticatedHttpClientOptions["fetchDeviceCredentials"];
|
|
697
602
|
}
|
|
698
|
-
/**
|
|
699
|
-
* Class used for all Whereby API calls.
|
|
700
|
-
*/
|
|
701
603
|
declare class ApiClient {
|
|
702
604
|
authenticatedHttpClient: AuthenticatedHttpClient;
|
|
703
605
|
authenticatedFormDataHttpClient: MultipartHttpClient;
|
|
704
|
-
/**
|
|
705
|
-
* Create an ApiClient instance.
|
|
706
|
-
*/
|
|
707
606
|
constructor({ baseUrl, fetchDeviceCredentials, }?: ApiClientOptions);
|
|
708
|
-
/**
|
|
709
|
-
* Wrapper for the fetch API
|
|
710
|
-
*/
|
|
711
607
|
request(url: string, options: HttpClientRequestConfig): Promise<Response>;
|
|
712
|
-
/**
|
|
713
|
-
* Performs a multipart request where data is multipart/form-data encoded.
|
|
714
|
-
*/
|
|
715
608
|
requestMultipart(url: string, options: HttpClientRequestConfig): Promise<Response>;
|
|
716
609
|
}
|
|
717
610
|
|
|
718
|
-
/**
|
|
719
|
-
* Related to device calls needed to obtain credentials
|
|
720
|
-
*/
|
|
721
611
|
declare class DeviceService {
|
|
722
612
|
_apiClient: ApiClient;
|
|
723
613
|
constructor({ apiClient }: {
|
|
724
614
|
apiClient: ApiClient;
|
|
725
615
|
});
|
|
726
|
-
/**
|
|
727
|
-
* Get's the device credentials needed for most of the other API services
|
|
728
|
-
*
|
|
729
|
-
* @return {Promise} A promise which is fulfilled or failed based on the
|
|
730
|
-
* response.
|
|
731
|
-
*/
|
|
732
616
|
getCredentials(): Promise<Credentials | null>;
|
|
733
617
|
}
|
|
734
618
|
|
|
@@ -737,15 +621,10 @@ interface AbstractStore {
|
|
|
737
621
|
save(value: Json): Promise<void>;
|
|
738
622
|
}
|
|
739
623
|
|
|
740
|
-
declare class CredentialsService extends EventEmitter {
|
|
624
|
+
declare class CredentialsService extends EventEmitter$1 {
|
|
741
625
|
_deviceService: DeviceService;
|
|
742
626
|
_credentialsStore: AbstractStore;
|
|
743
627
|
credentialsPromise?: Promise<Credentials | null>;
|
|
744
|
-
/**
|
|
745
|
-
* Service to manage Whereby's Rest API credentials.
|
|
746
|
-
*
|
|
747
|
-
* @param {ObjectStore} credentialsStore - Store to manage the credentials.
|
|
748
|
-
*/
|
|
749
628
|
constructor({ deviceService, credentialsStore, }: {
|
|
750
629
|
deviceService: DeviceService;
|
|
751
630
|
credentialsStore: AbstractStore;
|
|
@@ -755,55 +634,17 @@ declare class CredentialsService extends EventEmitter {
|
|
|
755
634
|
storeName?: string;
|
|
756
635
|
storeType?: "localStorage" | "chromeStorage";
|
|
757
636
|
}): CredentialsService;
|
|
758
|
-
/**
|
|
759
|
-
* Contacts the REST API to get new credentials. DO NOT USE directly, call getCredentials() instead.
|
|
760
|
-
*
|
|
761
|
-
* @see getCredentials
|
|
762
|
-
* @returns {Promise.<Credentials>} - Promise that resolves with the credentials.
|
|
763
|
-
*/
|
|
764
637
|
_fetchNewCredentialsFromApi(): Promise<Credentials | null>;
|
|
765
|
-
/**
|
|
766
|
-
* Returns the current credentials without triggering an API request to get new ones.
|
|
767
|
-
* If no credentials are currently available it will return null.
|
|
768
|
-
*
|
|
769
|
-
* @returns {?Credentials} - The credentials currently in use, null otherwise.
|
|
770
|
-
*/
|
|
771
638
|
getCurrentCredentials(): Promise<Credentials | null>;
|
|
772
|
-
/**
|
|
773
|
-
* Returns a promise that will contain the credentials for this client.
|
|
774
|
-
* If no credentials are available in local storage, new ones will be fetched from the server.
|
|
775
|
-
*
|
|
776
|
-
* @returns {Promise.<Credentials>} - Promise that resolves with the credentials.
|
|
777
|
-
*/
|
|
778
639
|
getCredentials(): Promise<Credentials | null>;
|
|
779
|
-
/**
|
|
780
|
-
* Saves new credentials which replace the existing ones and abort any pending request to get new ones.
|
|
781
|
-
*
|
|
782
|
-
* @param {Credentials} credentials - New credentials to store.
|
|
783
|
-
*/
|
|
784
640
|
saveCredentials(credentials: Credentials): Promise<Credentials>;
|
|
785
|
-
/**
|
|
786
|
-
* It will set the userId for the current credentials.
|
|
787
|
-
*
|
|
788
|
-
* @param userId - The user id to set.
|
|
789
|
-
*/
|
|
790
641
|
setUserId(userId: string | null): Promise<void>;
|
|
791
642
|
}
|
|
792
643
|
|
|
793
644
|
type FetchOrganizationFunction = () => Promise<Organization | undefined>;
|
|
794
|
-
/**
|
|
795
|
-
* Class used for all Whereby organization API calls.
|
|
796
|
-
*/
|
|
797
645
|
declare class OrganizationApiClient {
|
|
798
646
|
private _apiClient;
|
|
799
647
|
private _fetchOrganization;
|
|
800
|
-
/**
|
|
801
|
-
* Create an OrganizationApiClient instance.
|
|
802
|
-
*
|
|
803
|
-
* @param {Object} options - The options for the OrganizationApiClient.
|
|
804
|
-
* @param {ApiClient} [options.apiClient] - The apiClient to use.
|
|
805
|
-
* @param {Function} [options.fetchOrganization] - function that returns a promise with the organization.
|
|
806
|
-
*/
|
|
807
648
|
constructor({ apiClient, fetchOrganization, }: {
|
|
808
649
|
apiClient: ApiClient;
|
|
809
650
|
fetchOrganization?: FetchOrganizationFunction;
|
|
@@ -824,9 +665,6 @@ declare class OrganizationService {
|
|
|
824
665
|
constructor({ apiClient }: {
|
|
825
666
|
apiClient: ApiClient;
|
|
826
667
|
});
|
|
827
|
-
/**
|
|
828
|
-
* Creates an organization.
|
|
829
|
-
*/
|
|
830
668
|
createOrganization({ organizationName, subdomain, owner, }: {
|
|
831
669
|
organizationName: string;
|
|
832
670
|
subdomain: string;
|
|
@@ -841,23 +679,8 @@ declare class OrganizationService {
|
|
|
841
679
|
consents?: ReadonlyArray<ConsentGrantRequest>;
|
|
842
680
|
};
|
|
843
681
|
}): Promise<string>;
|
|
844
|
-
/**
|
|
845
|
-
* Retrieves the organization based on the subdomain.
|
|
846
|
-
*/
|
|
847
682
|
getOrganizationBySubdomain(subdomain: string): Promise<Organization | null>;
|
|
848
|
-
/**
|
|
849
|
-
* Retrieves the organization based on the organizationId.
|
|
850
|
-
*
|
|
851
|
-
* Note: This endpoint should only be used to retrieve an organization when the device is linked
|
|
852
|
-
* to a user in that organization. Use getOrganizationBySubdomain instead if you just want the information
|
|
853
|
-
* about an organization that is mapped to a given subdomain.
|
|
854
|
-
*/
|
|
855
683
|
getOrganizationByOrganizationId(organizationId: string): Promise<Organization | null>;
|
|
856
|
-
/**
|
|
857
|
-
* Retrieves the organizations that contain a user
|
|
858
|
-
* matching provided the email+code or phoneNumber+code
|
|
859
|
-
* combination.
|
|
860
|
-
*/
|
|
861
684
|
getOrganizationsByContactPoint(options: {
|
|
862
685
|
email: string;
|
|
863
686
|
code: string;
|
|
@@ -865,37 +688,17 @@ declare class OrganizationService {
|
|
|
865
688
|
phoneNumber: string;
|
|
866
689
|
code: string;
|
|
867
690
|
}): Promise<ReadonlyArray<Organization>>;
|
|
868
|
-
/**
|
|
869
|
-
* Retrieves the organizations that contain a user
|
|
870
|
-
* matching provided the idToken
|
|
871
|
-
*/
|
|
872
691
|
getOrganizationsByIdToken({ idToken }: {
|
|
873
692
|
idToken: string;
|
|
874
693
|
}): Promise<ReadonlyArray<Organization>>;
|
|
875
|
-
/**
|
|
876
|
-
* Retrieves the organizations containing a user
|
|
877
|
-
* with either the email or phoneNumber matching the logged in user.
|
|
878
|
-
*
|
|
879
|
-
* This is useful for showing the possible organization that the current
|
|
880
|
-
* user could log in to.
|
|
881
|
-
*/
|
|
882
694
|
getOrganizationsByLoggedInUser(): Promise<ReadonlyArray<Organization>>;
|
|
883
|
-
/**
|
|
884
|
-
* Checks if a subdomain is available and verifies its format.
|
|
885
|
-
*/
|
|
886
695
|
getSubdomainAvailability(subdomain: string): Promise<{
|
|
887
696
|
status: string;
|
|
888
697
|
}>;
|
|
889
|
-
/**
|
|
890
|
-
* Updates preferences of the organization.
|
|
891
|
-
*/
|
|
892
698
|
updatePreferences({ organizationId, preferences, }: {
|
|
893
699
|
organizationId: string;
|
|
894
700
|
preferences: OrganizationPreferences;
|
|
895
701
|
}): Promise<undefined>;
|
|
896
|
-
/**
|
|
897
|
-
* Delete organization
|
|
898
|
-
*/
|
|
899
702
|
deleteOrganization({ organizationId }: {
|
|
900
703
|
organizationId: string;
|
|
901
704
|
}): Promise<undefined>;
|
|
@@ -918,105 +721,37 @@ declare class Room {
|
|
|
918
721
|
constructor(properties?: {});
|
|
919
722
|
}
|
|
920
723
|
|
|
921
|
-
/**
|
|
922
|
-
* Service for talking to the Room related APIs
|
|
923
|
-
*/
|
|
924
724
|
declare class RoomService {
|
|
925
|
-
/**
|
|
926
|
-
* @param {object} organizationApiClient (required)
|
|
927
|
-
*/
|
|
928
725
|
constructor({ organizationApiClient }: {
|
|
929
726
|
organizationApiClient: any;
|
|
930
727
|
});
|
|
931
|
-
/**
|
|
932
|
-
* Gets the list of visited rooms
|
|
933
|
-
*
|
|
934
|
-
* @param {Object} args
|
|
935
|
-
* @param {Array<string>} [types=["team"]] - The type of rooms that should be fetched.
|
|
936
|
-
* @param {Array<string>} [fields=["meeting"]] - The fields of room that should be fetched.
|
|
937
|
-
* @returns {Promise<array>} - It will resolve with an array.
|
|
938
|
-
*/
|
|
939
728
|
getRooms({ types, fields }?: {
|
|
940
729
|
types: any;
|
|
941
730
|
fields?: never[] | undefined;
|
|
942
731
|
}): any;
|
|
943
|
-
/**
|
|
944
|
-
* Gets the specified room.
|
|
945
|
-
*
|
|
946
|
-
* Currently information is implicitly alluded to via the servers
|
|
947
|
-
* `/room/roomName` response. This method patches the data
|
|
948
|
-
* tempoarily, until the day it comes back from the server.
|
|
949
|
-
*
|
|
950
|
-
* @returns {Promise<Room>} - It will resolve with the Room.
|
|
951
|
-
*/
|
|
952
732
|
getRoom({ roomName, fields }: {
|
|
953
733
|
roomName: string;
|
|
954
734
|
fields?: Array<string>;
|
|
955
735
|
}): Promise<Room>;
|
|
956
|
-
/**
|
|
957
|
-
* Claims the specified room.
|
|
958
|
-
*
|
|
959
|
-
* @param {Object} args
|
|
960
|
-
* @param {String} args.roomName - The roomName to claim
|
|
961
|
-
* @param {String} args.type - The type of room to claim
|
|
962
|
-
* @param {String} args.mode - The optional mode of room to claim
|
|
963
|
-
* @param {[Boolean]} args.isLocked - The optional lock status of room to claim
|
|
964
|
-
* @returns {Promise} - It will resolve with undefined.
|
|
965
|
-
*/
|
|
966
736
|
claimRoom({ roomName, type, mode, isLocked }: {
|
|
967
737
|
roomName: any;
|
|
968
738
|
type: any;
|
|
969
739
|
mode: any;
|
|
970
740
|
isLocked: any;
|
|
971
741
|
}): any;
|
|
972
|
-
/**
|
|
973
|
-
* Unclaims the specified room.
|
|
974
|
-
*
|
|
975
|
-
* @param {string} roomName - the room name to unclaim.
|
|
976
|
-
* @returns {Promise.<undefined>} - It will resolve with undefined.
|
|
977
|
-
*/
|
|
978
742
|
unclaimRoom(roomName: any): any;
|
|
979
|
-
/**
|
|
980
|
-
* Changes the name of the room
|
|
981
|
-
*
|
|
982
|
-
* @param {Object} args
|
|
983
|
-
* @param {string} args.roomName - The name of the room to rename
|
|
984
|
-
* @param {string} args.newRoomName - The new name
|
|
985
|
-
* @returns {Promise<undefined>} - It will resolve if the room was renamed, reject for all other cases
|
|
986
|
-
*/
|
|
987
743
|
renameRoom({ roomName, newRoomName }: {
|
|
988
744
|
roomName: any;
|
|
989
745
|
newRoomName: any;
|
|
990
746
|
}): any;
|
|
991
|
-
/**
|
|
992
|
-
* Changes the room mode (experimental)
|
|
993
|
-
*
|
|
994
|
-
* @param {string} roomName - The name of the room to change mode of
|
|
995
|
-
* @param {string} mode - The name of mode to set, currently only "group" is supported
|
|
996
|
-
* @returns {Promise<undefined>} - It will resolve if mode was changed, rejects for all other cases
|
|
997
|
-
*/
|
|
998
747
|
changeMode({ roomName, mode }: {
|
|
999
748
|
roomName: any;
|
|
1000
749
|
mode: any;
|
|
1001
750
|
}): any;
|
|
1002
|
-
/**
|
|
1003
|
-
* Updates the room prefs
|
|
1004
|
-
*
|
|
1005
|
-
* @param {string} roomName - The name of the room to change mode of
|
|
1006
|
-
* @param {object} preferences - The prefs you want to update and their values
|
|
1007
|
-
* @returns {Promise<undefined>} - It will resolve if updated, rejects for all other cases
|
|
1008
|
-
*/
|
|
1009
751
|
updatePreferences({ roomName, preferences }: {
|
|
1010
752
|
roomName: any;
|
|
1011
753
|
preferences: any;
|
|
1012
754
|
}): any;
|
|
1013
|
-
/**
|
|
1014
|
-
* Updates the protected room prefs
|
|
1015
|
-
*
|
|
1016
|
-
* @param {string} roomName - The name of the room to change mode of
|
|
1017
|
-
* @param {object} preferences - The protected prefs you want to update and their values
|
|
1018
|
-
* @returns {Promise<undefined>} - It will resolve if updated, rejects for all other cases
|
|
1019
|
-
*/
|
|
1020
755
|
updateProtectedPreferences({ roomName, preferences }: {
|
|
1021
756
|
roomName: any;
|
|
1022
757
|
preferences: any;
|
|
@@ -1024,70 +759,31 @@ declare class RoomService {
|
|
|
1024
759
|
getRoomPermissions(roomName: any, { roomKey }?: {
|
|
1025
760
|
roomKey: any;
|
|
1026
761
|
}): any;
|
|
1027
|
-
/**
|
|
1028
|
-
* Gets the specified room metrics
|
|
1029
|
-
*
|
|
1030
|
-
* @param {Object} args
|
|
1031
|
-
* @param {string} args.roomName - The name of the room to get metrics from.
|
|
1032
|
-
* @param {string} args.metrics - Comma-separated list of metrics to include.
|
|
1033
|
-
* @param {string} args.from (optional) - Start time (inclusive) to count from in
|
|
1034
|
-
* ISO format. Defaults to counting from the start of time.
|
|
1035
|
-
* @param {string} args.to (optional) - End time (exclusive) to count up to in
|
|
1036
|
-
* ISO format. Defaults to counting up to the current time.
|
|
1037
|
-
* @returns {Promise<Object>} - It will resolve with the requested metrics.
|
|
1038
|
-
*/
|
|
1039
762
|
getRoomMetrics({ roomName, metrics, from, to }: {
|
|
1040
763
|
roomName: any;
|
|
1041
764
|
metrics: any;
|
|
1042
765
|
from: any;
|
|
1043
766
|
to: any;
|
|
1044
767
|
}): any;
|
|
1045
|
-
/**
|
|
1046
|
-
* Changes the room type
|
|
1047
|
-
*
|
|
1048
|
-
* @param {Object} args
|
|
1049
|
-
* @param {string} args.roomName - The name of the room to change mode of
|
|
1050
|
-
* @param {"personal" | "personal_xl"} args.type - Room type that should be set
|
|
1051
|
-
* @returns {Promise<undefined>} - It will resolve if type was changed, rejects for all other cases
|
|
1052
|
-
*/
|
|
1053
768
|
changeType({ roomName, type }: {
|
|
1054
769
|
roomName: any;
|
|
1055
770
|
type: any;
|
|
1056
771
|
}): any;
|
|
1057
|
-
/** Gets a Forest campaign social image
|
|
1058
|
-
*
|
|
1059
|
-
* @param {Object} args
|
|
1060
|
-
* @param {string} args.roomName - The name of the room to get metrics from.
|
|
1061
|
-
* @param {number} args.count - Number to be displayed in the image as tree count.
|
|
1062
|
-
* @returns {Promise<string>} - It will resolve with the image url.
|
|
1063
|
-
*/
|
|
1064
772
|
getForestSocialImage({ roomName, count }: {
|
|
1065
773
|
roomName: any;
|
|
1066
774
|
count: any;
|
|
1067
775
|
}): any;
|
|
1068
776
|
}
|
|
1069
777
|
|
|
1070
|
-
/**
|
|
1071
|
-
* Reducer
|
|
1072
|
-
*/
|
|
1073
778
|
interface DeviceCredentialsState {
|
|
1074
779
|
isFetching: boolean;
|
|
1075
780
|
data?: Credentials | null;
|
|
1076
781
|
}
|
|
1077
782
|
declare const deviceCredentialsSlice: _reduxjs_toolkit.Slice<DeviceCredentialsState, {}, "deviceCredentials", "deviceCredentials", _reduxjs_toolkit.SliceSelectors<DeviceCredentialsState>>;
|
|
1078
|
-
/**
|
|
1079
|
-
* Action creators
|
|
1080
|
-
*/
|
|
1081
783
|
declare const doGetDeviceCredentials: _reduxjs_toolkit.AsyncThunk<Credentials | null | undefined, undefined, ThunkConfig>;
|
|
1082
|
-
/**
|
|
1083
|
-
* Selectors
|
|
1084
|
-
*/
|
|
1085
784
|
declare const selectDeviceCredentialsRaw: (state: RootState) => DeviceCredentialsState;
|
|
1086
785
|
declare const selectHasFetchedDeviceCredentials: (state: RootState) => boolean;
|
|
1087
786
|
declare const selectDeviceId: (state: RootState) => string | undefined;
|
|
1088
|
-
/**
|
|
1089
|
-
* Reactors
|
|
1090
|
-
*/
|
|
1091
787
|
declare const selectShouldFetchDeviceCredentials: ((state: {
|
|
1092
788
|
app: AppState;
|
|
1093
789
|
chat: ChatState;
|
|
@@ -1150,9 +846,6 @@ type LocalMediaOptions = {
|
|
|
1150
846
|
audio: boolean;
|
|
1151
847
|
video: boolean;
|
|
1152
848
|
};
|
|
1153
|
-
/**
|
|
1154
|
-
* Reducer
|
|
1155
|
-
*/
|
|
1156
849
|
interface LocalMediaState {
|
|
1157
850
|
busyDeviceIds: string[];
|
|
1158
851
|
cameraDeviceError?: unknown;
|
|
@@ -2110,9 +1803,6 @@ declare const localMediaSlice: _reduxjs_toolkit.Slice<LocalMediaState, {
|
|
|
2110
1803
|
onDeviceChange?: (() => void) | undefined;
|
|
2111
1804
|
};
|
|
2112
1805
|
}, "localMedia", "localMedia", _reduxjs_toolkit.SliceSelectors<LocalMediaState>>;
|
|
2113
|
-
/**
|
|
2114
|
-
* Action creators
|
|
2115
|
-
*/
|
|
2116
1806
|
declare const deviceBusy: _reduxjs_toolkit.ActionCreatorWithPayload<{
|
|
2117
1807
|
deviceId: string;
|
|
2118
1808
|
}, "localMedia/deviceBusy">;
|
|
@@ -2135,18 +1825,7 @@ declare const setLocalMediaStream: _reduxjs_toolkit.ActionCreatorWithPayload<{
|
|
|
2135
1825
|
stream: MediaStream;
|
|
2136
1826
|
}, "localMedia/setLocalMediaStream">;
|
|
2137
1827
|
declare const localMediaStopped: _reduxjs_toolkit.ActionCreatorWithoutPayload<"localMedia/localMediaStopped">;
|
|
2138
|
-
declare const localStreamMetadataUpdated: _reduxjs_toolkit.ActionCreatorWithPayload<
|
|
2139
|
-
audio: {
|
|
2140
|
-
deviceId: string;
|
|
2141
|
-
label: string;
|
|
2142
|
-
kind: string;
|
|
2143
|
-
};
|
|
2144
|
-
video: {
|
|
2145
|
-
deviceId: string;
|
|
2146
|
-
label: string;
|
|
2147
|
-
kind: string;
|
|
2148
|
-
};
|
|
2149
|
-
}, "localMedia/localStreamMetadataUpdated">;
|
|
1828
|
+
declare const localStreamMetadataUpdated: _reduxjs_toolkit.ActionCreatorWithPayload<_whereby_com_media.GetDeviceDataResult, "localMedia/localStreamMetadataUpdated">;
|
|
2150
1829
|
declare const doToggleCamera: _reduxjs_toolkit.AsyncThunk<undefined, undefined, ThunkConfig>;
|
|
2151
1830
|
declare const doSetDevice: _reduxjs_toolkit.AsyncThunk<{
|
|
2152
1831
|
replacedTracks: MediaStreamTrack[] | undefined;
|
|
@@ -2168,9 +1847,6 @@ declare const doStartLocalMedia: _reduxjs_toolkit.AsyncThunk<{
|
|
|
2168
1847
|
onDeviceChange: DebouncedFunction;
|
|
2169
1848
|
}, LocalMediaOptions | MediaStream, ThunkConfig>;
|
|
2170
1849
|
declare const doStopLocalMedia: (args: void) => AppThunk<void>;
|
|
2171
|
-
/**
|
|
2172
|
-
* Selectors
|
|
2173
|
-
*/
|
|
2174
1850
|
declare const selectBusyDeviceIds: (state: RootState) => string[];
|
|
2175
1851
|
declare const selectCameraDeviceError: (state: RootState) => unknown;
|
|
2176
1852
|
declare const selectCurrentCameraDeviceId: (state: RootState) => string | undefined;
|
|
@@ -2454,9 +2130,6 @@ declare const selectSpeakerDevices: ((state: {
|
|
|
2454
2130
|
argsMemoize: typeof reselect.weakMapMemoize;
|
|
2455
2131
|
memoize: typeof reselect.weakMapMemoize;
|
|
2456
2132
|
};
|
|
2457
|
-
/**
|
|
2458
|
-
* Reactors
|
|
2459
|
-
*/
|
|
2460
2133
|
declare const selectLocalMediaShouldStartWithOptions: ((state: {
|
|
2461
2134
|
app: AppState;
|
|
2462
2135
|
chat: ChatState;
|
|
@@ -2580,27 +2253,15 @@ declare const selectLocalMediaShouldStop: ((state: {
|
|
|
2580
2253
|
memoize: typeof reselect.weakMapMemoize;
|
|
2581
2254
|
};
|
|
2582
2255
|
|
|
2583
|
-
/**
|
|
2584
|
-
* Reducer
|
|
2585
|
-
*/
|
|
2586
2256
|
interface OrganizationState {
|
|
2587
2257
|
data: Organization | null | undefined;
|
|
2588
2258
|
isFetching: boolean;
|
|
2589
2259
|
error: unknown;
|
|
2590
2260
|
}
|
|
2591
2261
|
declare const organizationSlice: _reduxjs_toolkit.Slice<OrganizationState, {}, "organization", "organization", _reduxjs_toolkit.SliceSelectors<OrganizationState>>;
|
|
2592
|
-
/**
|
|
2593
|
-
* Action creators
|
|
2594
|
-
*/
|
|
2595
2262
|
declare const doOrganizationFetch: _reduxjs_toolkit.AsyncThunk<Organization | undefined, undefined, ThunkConfig>;
|
|
2596
|
-
/**
|
|
2597
|
-
* Selectors
|
|
2598
|
-
*/
|
|
2599
2263
|
declare const selectOrganizationRaw: (state: RootState) => OrganizationState;
|
|
2600
2264
|
declare const selectOrganizationId: (state: RootState) => string | undefined;
|
|
2601
|
-
/**
|
|
2602
|
-
* Reducers
|
|
2603
|
-
*/
|
|
2604
2265
|
declare const selectShouldFetchOrganization: ((state: {
|
|
2605
2266
|
app: AppState;
|
|
2606
2267
|
chat: ChatState;
|
|
@@ -2677,9 +2338,6 @@ interface StreamStatusUpdate {
|
|
|
2677
2338
|
state: StreamState;
|
|
2678
2339
|
}
|
|
2679
2340
|
|
|
2680
|
-
/**
|
|
2681
|
-
* Reducer
|
|
2682
|
-
*/
|
|
2683
2341
|
interface RemoteParticipantState {
|
|
2684
2342
|
remoteParticipants: RemoteParticipant[];
|
|
2685
2343
|
}
|
|
@@ -2927,18 +2585,12 @@ declare const remoteParticipantsSlice: _reduxjs_toolkit.Slice<RemoteParticipantS
|
|
|
2927
2585
|
streamId: string;
|
|
2928
2586
|
}>) => RemoteParticipantState;
|
|
2929
2587
|
}, "remoteParticipants", "remoteParticipants", _reduxjs_toolkit.SliceSelectors<RemoteParticipantState>>;
|
|
2930
|
-
/**
|
|
2931
|
-
* Action creators
|
|
2932
|
-
*/
|
|
2933
2588
|
declare const participantStreamAdded: _reduxjs_toolkit.ActionCreatorWithPayload<RtcStreamAddedPayload, "remoteParticipants/participantStreamAdded">;
|
|
2934
2589
|
declare const participantStreamIdAdded: _reduxjs_toolkit.ActionCreatorWithPayload<{
|
|
2935
2590
|
clientId: string;
|
|
2936
2591
|
streamId: string;
|
|
2937
2592
|
}, "remoteParticipants/participantStreamIdAdded">;
|
|
2938
2593
|
declare const streamStatusUpdated: _reduxjs_toolkit.ActionCreatorWithPayload<StreamStatusUpdate[], "remoteParticipants/streamStatusUpdated">;
|
|
2939
|
-
/**
|
|
2940
|
-
* Selectors
|
|
2941
|
-
*/
|
|
2942
2594
|
declare const selectRemoteParticipantsRaw: (state: RootState) => RemoteParticipantState;
|
|
2943
2595
|
declare const selectRemoteParticipants: (state: RootState) => RemoteParticipant[];
|
|
2944
2596
|
declare const selectScreenshares: ((state: {
|
|
@@ -2996,9 +2648,6 @@ declare const selectScreenshares: ((state: {
|
|
|
2996
2648
|
};
|
|
2997
2649
|
|
|
2998
2650
|
type ConnectionStatus = "initializing" | "connecting" | "connected" | "reconnect" | "room_locked" | "knocking" | "disconnecting" | "disconnected" | "knock_rejected" | "kicked";
|
|
2999
|
-
/**
|
|
3000
|
-
* Reducer
|
|
3001
|
-
*/
|
|
3002
2651
|
interface RoomConnectionState {
|
|
3003
2652
|
session: {
|
|
3004
2653
|
createdAt: string;
|
|
@@ -3026,9 +2675,6 @@ declare const roomConnectionSlice: _reduxjs_toolkit.Slice<RoomConnectionState, {
|
|
|
3026
2675
|
}, "roomConnection", "roomConnection", _reduxjs_toolkit.SliceSelectors<RoomConnectionState>>;
|
|
3027
2676
|
declare const doKnockRoom: (args: void) => AppThunk<void>;
|
|
3028
2677
|
declare const doConnectRoom: (args: void) => AppThunk<void>;
|
|
3029
|
-
/**
|
|
3030
|
-
* Selectors
|
|
3031
|
-
*/
|
|
3032
2678
|
declare const selectRoomConnectionRaw: (state: RootState) => RoomConnectionState;
|
|
3033
2679
|
declare const selectRoomConnectionSession: (state: RootState) => {
|
|
3034
2680
|
createdAt: string;
|
|
@@ -3037,9 +2683,6 @@ declare const selectRoomConnectionSession: (state: RootState) => {
|
|
|
3037
2683
|
declare const selectRoomConnectionSessionId: (state: RootState) => string | undefined;
|
|
3038
2684
|
declare const selectRoomConnectionStatus: (state: RootState) => ConnectionStatus;
|
|
3039
2685
|
declare const selectRoomConnectionError: (state: RootState) => string | null;
|
|
3040
|
-
/**
|
|
3041
|
-
* Reactors
|
|
3042
|
-
*/
|
|
3043
2686
|
declare const selectShouldConnectRoom: ((state: {
|
|
3044
2687
|
app: AppState;
|
|
3045
2688
|
chat: ChatState;
|
|
@@ -3145,9 +2788,6 @@ declare const selectShouldConnectRoom: ((state: {
|
|
|
3145
2788
|
declare const createWebRtcEmitter: (dispatch: AppDispatch) => {
|
|
3146
2789
|
emit: (eventName: keyof RtcEvents, data: RtcEvents[keyof RtcEvents]) => void;
|
|
3147
2790
|
};
|
|
3148
|
-
/**
|
|
3149
|
-
* Reducer
|
|
3150
|
-
*/
|
|
3151
2791
|
interface StreamResolutionUpdate {
|
|
3152
2792
|
streamId: string;
|
|
3153
2793
|
width: number;
|
|
@@ -3178,16 +2818,16 @@ declare const rtcConnectionSlice: _reduxjs_toolkit.Slice<RtcConnectionState, {
|
|
|
3178
2818
|
};
|
|
3179
2819
|
};
|
|
3180
2820
|
rtcManager: {
|
|
3181
|
-
acceptNewStream: ({ activeBreakout
|
|
3182
|
-
activeBreakout:
|
|
3183
|
-
clientId:
|
|
3184
|
-
shouldAddLocalVideo:
|
|
3185
|
-
streamId:
|
|
2821
|
+
acceptNewStream: ({ activeBreakout, clientId, shouldAddLocalVideo, streamId, }: {
|
|
2822
|
+
activeBreakout: boolean;
|
|
2823
|
+
clientId: string;
|
|
2824
|
+
shouldAddLocalVideo: boolean;
|
|
2825
|
+
streamId: string;
|
|
3186
2826
|
}) => void;
|
|
3187
2827
|
addNewStream: (streamId: string, stream: MediaStream, isAudioEnabled: boolean, isVideoEnabled: boolean) => void;
|
|
3188
|
-
disconnect: (streamId: string, activeBreakout: boolean) => void;
|
|
2828
|
+
disconnect: (streamId: string, activeBreakout: boolean | null, eventClaim?: string | undefined) => void;
|
|
3189
2829
|
disconnectAll: () => void;
|
|
3190
|
-
replaceTrack: (oldTrack: MediaStreamTrack, newTrack: MediaStreamTrack) =>
|
|
2830
|
+
replaceTrack: (oldTrack: MediaStreamTrack, newTrack: MediaStreamTrack) => void;
|
|
3191
2831
|
removeStream: (streamId: string, _stream: MediaStream, requestedByClientId: string | null) => void;
|
|
3192
2832
|
shouldAcceptStreamsFromBothSides?: (() => boolean) | undefined;
|
|
3193
2833
|
updateStreamResolution: (streamId: string, ignored: null, resolution: {
|
|
@@ -3195,8 +2835,46 @@ declare const rtcConnectionSlice: _reduxjs_toolkit.Slice<RtcConnectionState, {
|
|
|
3195
2835
|
height: number;
|
|
3196
2836
|
}) => void;
|
|
3197
2837
|
sendStatsCustomEvent: (eventName: string, data: unknown) => void;
|
|
2838
|
+
isInitializedWith: ({ selfId, roomName, isSfu }: {
|
|
2839
|
+
selfId: string;
|
|
2840
|
+
roomName: string;
|
|
2841
|
+
isSfu: boolean;
|
|
2842
|
+
}) => boolean;
|
|
2843
|
+
setEventClaim?: ((eventClaim: string) => void) | undefined;
|
|
2844
|
+
hasClient: (clientId: string) => boolean;
|
|
2845
|
+
} | null;
|
|
2846
|
+
rtcManagerDispatcher: {
|
|
2847
|
+
emitter: {
|
|
2848
|
+
emit: <K extends keyof RtcEvents>(eventName: K, args?: RtcEvents[K] | undefined) => void;
|
|
2849
|
+
};
|
|
2850
|
+
currentManager: {
|
|
2851
|
+
acceptNewStream: ({ activeBreakout, clientId, shouldAddLocalVideo, streamId, }: {
|
|
2852
|
+
activeBreakout: boolean;
|
|
2853
|
+
clientId: string;
|
|
2854
|
+
shouldAddLocalVideo: boolean;
|
|
2855
|
+
streamId: string;
|
|
2856
|
+
}) => void;
|
|
2857
|
+
addNewStream: (streamId: string, stream: MediaStream, isAudioEnabled: boolean, isVideoEnabled: boolean) => void;
|
|
2858
|
+
disconnect: (streamId: string, activeBreakout: boolean | null, eventClaim?: string | undefined) => void;
|
|
2859
|
+
disconnectAll: () => void;
|
|
2860
|
+
replaceTrack: (oldTrack: MediaStreamTrack, newTrack: MediaStreamTrack) => void;
|
|
2861
|
+
removeStream: (streamId: string, _stream: MediaStream, requestedByClientId: string | null) => void;
|
|
2862
|
+
shouldAcceptStreamsFromBothSides?: (() => boolean) | undefined;
|
|
2863
|
+
updateStreamResolution: (streamId: string, ignored: null, resolution: {
|
|
2864
|
+
width: number;
|
|
2865
|
+
height: number;
|
|
2866
|
+
}) => void;
|
|
2867
|
+
sendStatsCustomEvent: (eventName: string, data: unknown) => void;
|
|
2868
|
+
isInitializedWith: ({ selfId, roomName, isSfu }: {
|
|
2869
|
+
selfId: string;
|
|
2870
|
+
roomName: string;
|
|
2871
|
+
isSfu: boolean;
|
|
2872
|
+
}) => boolean;
|
|
2873
|
+
setEventClaim?: ((eventClaim: string) => void) | undefined;
|
|
2874
|
+
hasClient: (clientId: string) => boolean;
|
|
2875
|
+
} | null;
|
|
2876
|
+
stopRtcManager: () => void;
|
|
3198
2877
|
} | null;
|
|
3199
|
-
rtcManagerDispatcher: {} | null;
|
|
3200
2878
|
rtcManagerInitialized: boolean;
|
|
3201
2879
|
status: "" | "ready" | "reconnect";
|
|
3202
2880
|
isAcceptingStreams: boolean;
|
|
@@ -3212,16 +2890,16 @@ declare const rtcConnectionSlice: _reduxjs_toolkit.Slice<RtcConnectionState, {
|
|
|
3212
2890
|
};
|
|
3213
2891
|
};
|
|
3214
2892
|
rtcManager: {
|
|
3215
|
-
acceptNewStream: ({ activeBreakout
|
|
3216
|
-
activeBreakout:
|
|
3217
|
-
clientId:
|
|
3218
|
-
shouldAddLocalVideo:
|
|
3219
|
-
streamId:
|
|
2893
|
+
acceptNewStream: ({ activeBreakout, clientId, shouldAddLocalVideo, streamId, }: {
|
|
2894
|
+
activeBreakout: boolean;
|
|
2895
|
+
clientId: string;
|
|
2896
|
+
shouldAddLocalVideo: boolean;
|
|
2897
|
+
streamId: string;
|
|
3220
2898
|
}) => void;
|
|
3221
2899
|
addNewStream: (streamId: string, stream: MediaStream, isAudioEnabled: boolean, isVideoEnabled: boolean) => void;
|
|
3222
|
-
disconnect: (streamId: string, activeBreakout: boolean) => void;
|
|
2900
|
+
disconnect: (streamId: string, activeBreakout: boolean | null, eventClaim?: string | undefined) => void;
|
|
3223
2901
|
disconnectAll: () => void;
|
|
3224
|
-
replaceTrack: (oldTrack: MediaStreamTrack, newTrack: MediaStreamTrack) =>
|
|
2902
|
+
replaceTrack: (oldTrack: MediaStreamTrack, newTrack: MediaStreamTrack) => void;
|
|
3225
2903
|
removeStream: (streamId: string, _stream: MediaStream, requestedByClientId: string | null) => void;
|
|
3226
2904
|
shouldAcceptStreamsFromBothSides?: (() => boolean) | undefined;
|
|
3227
2905
|
updateStreamResolution: (streamId: string, ignored: null, resolution: {
|
|
@@ -3229,8 +2907,46 @@ declare const rtcConnectionSlice: _reduxjs_toolkit.Slice<RtcConnectionState, {
|
|
|
3229
2907
|
height: number;
|
|
3230
2908
|
}) => void;
|
|
3231
2909
|
sendStatsCustomEvent: (eventName: string, data: unknown) => void;
|
|
2910
|
+
isInitializedWith: ({ selfId, roomName, isSfu }: {
|
|
2911
|
+
selfId: string;
|
|
2912
|
+
roomName: string;
|
|
2913
|
+
isSfu: boolean;
|
|
2914
|
+
}) => boolean;
|
|
2915
|
+
setEventClaim?: ((eventClaim: string) => void) | undefined;
|
|
2916
|
+
hasClient: (clientId: string) => boolean;
|
|
2917
|
+
} | null;
|
|
2918
|
+
rtcManagerDispatcher: {
|
|
2919
|
+
emitter: {
|
|
2920
|
+
emit: <K extends keyof RtcEvents>(eventName: K, args?: RtcEvents[K] | undefined) => void;
|
|
2921
|
+
};
|
|
2922
|
+
currentManager: {
|
|
2923
|
+
acceptNewStream: ({ activeBreakout, clientId, shouldAddLocalVideo, streamId, }: {
|
|
2924
|
+
activeBreakout: boolean;
|
|
2925
|
+
clientId: string;
|
|
2926
|
+
shouldAddLocalVideo: boolean;
|
|
2927
|
+
streamId: string;
|
|
2928
|
+
}) => void;
|
|
2929
|
+
addNewStream: (streamId: string, stream: MediaStream, isAudioEnabled: boolean, isVideoEnabled: boolean) => void;
|
|
2930
|
+
disconnect: (streamId: string, activeBreakout: boolean | null, eventClaim?: string | undefined) => void;
|
|
2931
|
+
disconnectAll: () => void;
|
|
2932
|
+
replaceTrack: (oldTrack: MediaStreamTrack, newTrack: MediaStreamTrack) => void;
|
|
2933
|
+
removeStream: (streamId: string, _stream: MediaStream, requestedByClientId: string | null) => void;
|
|
2934
|
+
shouldAcceptStreamsFromBothSides?: (() => boolean) | undefined;
|
|
2935
|
+
updateStreamResolution: (streamId: string, ignored: null, resolution: {
|
|
2936
|
+
width: number;
|
|
2937
|
+
height: number;
|
|
2938
|
+
}) => void;
|
|
2939
|
+
sendStatsCustomEvent: (eventName: string, data: unknown) => void;
|
|
2940
|
+
isInitializedWith: ({ selfId, roomName, isSfu }: {
|
|
2941
|
+
selfId: string;
|
|
2942
|
+
roomName: string;
|
|
2943
|
+
isSfu: boolean;
|
|
2944
|
+
}) => boolean;
|
|
2945
|
+
setEventClaim?: ((eventClaim: string) => void) | undefined;
|
|
2946
|
+
hasClient: (clientId: string) => boolean;
|
|
2947
|
+
} | null;
|
|
2948
|
+
stopRtcManager: () => void;
|
|
3232
2949
|
} | null;
|
|
3233
|
-
rtcManagerDispatcher: {} | null;
|
|
3234
2950
|
rtcManagerInitialized: boolean;
|
|
3235
2951
|
status: "" | "ready" | "reconnect";
|
|
3236
2952
|
};
|
|
@@ -3245,16 +2961,16 @@ declare const rtcConnectionSlice: _reduxjs_toolkit.Slice<RtcConnectionState, {
|
|
|
3245
2961
|
};
|
|
3246
2962
|
};
|
|
3247
2963
|
rtcManager: {
|
|
3248
|
-
acceptNewStream: ({ activeBreakout
|
|
3249
|
-
activeBreakout:
|
|
3250
|
-
clientId:
|
|
3251
|
-
shouldAddLocalVideo:
|
|
3252
|
-
streamId:
|
|
2964
|
+
acceptNewStream: ({ activeBreakout, clientId, shouldAddLocalVideo, streamId, }: {
|
|
2965
|
+
activeBreakout: boolean;
|
|
2966
|
+
clientId: string;
|
|
2967
|
+
shouldAddLocalVideo: boolean;
|
|
2968
|
+
streamId: string;
|
|
3253
2969
|
}) => void;
|
|
3254
2970
|
addNewStream: (streamId: string, stream: MediaStream, isAudioEnabled: boolean, isVideoEnabled: boolean) => void;
|
|
3255
|
-
disconnect: (streamId: string, activeBreakout: boolean) => void;
|
|
2971
|
+
disconnect: (streamId: string, activeBreakout: boolean | null, eventClaim?: string | undefined) => void;
|
|
3256
2972
|
disconnectAll: () => void;
|
|
3257
|
-
replaceTrack: (oldTrack: MediaStreamTrack, newTrack: MediaStreamTrack) =>
|
|
2973
|
+
replaceTrack: (oldTrack: MediaStreamTrack, newTrack: MediaStreamTrack) => void;
|
|
3258
2974
|
removeStream: (streamId: string, _stream: MediaStream, requestedByClientId: string | null) => void;
|
|
3259
2975
|
shouldAcceptStreamsFromBothSides?: (() => boolean) | undefined;
|
|
3260
2976
|
updateStreamResolution: (streamId: string, ignored: null, resolution: {
|
|
@@ -3262,8 +2978,46 @@ declare const rtcConnectionSlice: _reduxjs_toolkit.Slice<RtcConnectionState, {
|
|
|
3262
2978
|
height: number;
|
|
3263
2979
|
}) => void;
|
|
3264
2980
|
sendStatsCustomEvent: (eventName: string, data: unknown) => void;
|
|
2981
|
+
isInitializedWith: ({ selfId, roomName, isSfu }: {
|
|
2982
|
+
selfId: string;
|
|
2983
|
+
roomName: string;
|
|
2984
|
+
isSfu: boolean;
|
|
2985
|
+
}) => boolean;
|
|
2986
|
+
setEventClaim?: ((eventClaim: string) => void) | undefined;
|
|
2987
|
+
hasClient: (clientId: string) => boolean;
|
|
2988
|
+
} | null;
|
|
2989
|
+
rtcManagerDispatcher: {
|
|
2990
|
+
emitter: {
|
|
2991
|
+
emit: <K extends keyof RtcEvents>(eventName: K, args?: RtcEvents[K] | undefined) => void;
|
|
2992
|
+
};
|
|
2993
|
+
currentManager: {
|
|
2994
|
+
acceptNewStream: ({ activeBreakout, clientId, shouldAddLocalVideo, streamId, }: {
|
|
2995
|
+
activeBreakout: boolean;
|
|
2996
|
+
clientId: string;
|
|
2997
|
+
shouldAddLocalVideo: boolean;
|
|
2998
|
+
streamId: string;
|
|
2999
|
+
}) => void;
|
|
3000
|
+
addNewStream: (streamId: string, stream: MediaStream, isAudioEnabled: boolean, isVideoEnabled: boolean) => void;
|
|
3001
|
+
disconnect: (streamId: string, activeBreakout: boolean | null, eventClaim?: string | undefined) => void;
|
|
3002
|
+
disconnectAll: () => void;
|
|
3003
|
+
replaceTrack: (oldTrack: MediaStreamTrack, newTrack: MediaStreamTrack) => void;
|
|
3004
|
+
removeStream: (streamId: string, _stream: MediaStream, requestedByClientId: string | null) => void;
|
|
3005
|
+
shouldAcceptStreamsFromBothSides?: (() => boolean) | undefined;
|
|
3006
|
+
updateStreamResolution: (streamId: string, ignored: null, resolution: {
|
|
3007
|
+
width: number;
|
|
3008
|
+
height: number;
|
|
3009
|
+
}) => void;
|
|
3010
|
+
sendStatsCustomEvent: (eventName: string, data: unknown) => void;
|
|
3011
|
+
isInitializedWith: ({ selfId, roomName, isSfu }: {
|
|
3012
|
+
selfId: string;
|
|
3013
|
+
roomName: string;
|
|
3014
|
+
isSfu: boolean;
|
|
3015
|
+
}) => boolean;
|
|
3016
|
+
setEventClaim?: ((eventClaim: string) => void) | undefined;
|
|
3017
|
+
hasClient: (clientId: string) => boolean;
|
|
3018
|
+
} | null;
|
|
3019
|
+
stopRtcManager: () => void;
|
|
3265
3020
|
} | null;
|
|
3266
|
-
rtcManagerDispatcher: {} | null;
|
|
3267
3021
|
rtcManagerInitialized: boolean;
|
|
3268
3022
|
status: "" | "ready" | "reconnect";
|
|
3269
3023
|
isAcceptingStreams: boolean;
|
|
@@ -3281,16 +3035,16 @@ declare const rtcConnectionSlice: _reduxjs_toolkit.Slice<RtcConnectionState, {
|
|
|
3281
3035
|
error: unknown;
|
|
3282
3036
|
isCreatingDispatcher: boolean;
|
|
3283
3037
|
rtcManager: {
|
|
3284
|
-
acceptNewStream: ({ activeBreakout
|
|
3285
|
-
activeBreakout:
|
|
3286
|
-
clientId:
|
|
3287
|
-
shouldAddLocalVideo:
|
|
3288
|
-
streamId:
|
|
3038
|
+
acceptNewStream: ({ activeBreakout, clientId, shouldAddLocalVideo, streamId, }: {
|
|
3039
|
+
activeBreakout: boolean;
|
|
3040
|
+
clientId: string;
|
|
3041
|
+
shouldAddLocalVideo: boolean;
|
|
3042
|
+
streamId: string;
|
|
3289
3043
|
}) => void;
|
|
3290
3044
|
addNewStream: (streamId: string, stream: MediaStream, isAudioEnabled: boolean, isVideoEnabled: boolean) => void;
|
|
3291
|
-
disconnect: (streamId: string, activeBreakout: boolean) => void;
|
|
3045
|
+
disconnect: (streamId: string, activeBreakout: boolean | null, eventClaim?: string | undefined) => void;
|
|
3292
3046
|
disconnectAll: () => void;
|
|
3293
|
-
replaceTrack: (oldTrack: MediaStreamTrack, newTrack: MediaStreamTrack) =>
|
|
3047
|
+
replaceTrack: (oldTrack: MediaStreamTrack, newTrack: MediaStreamTrack) => void;
|
|
3294
3048
|
removeStream: (streamId: string, _stream: MediaStream, requestedByClientId: string | null) => void;
|
|
3295
3049
|
shouldAcceptStreamsFromBothSides?: (() => boolean) | undefined;
|
|
3296
3050
|
updateStreamResolution: (streamId: string, ignored: null, resolution: {
|
|
@@ -3298,8 +3052,46 @@ declare const rtcConnectionSlice: _reduxjs_toolkit.Slice<RtcConnectionState, {
|
|
|
3298
3052
|
height: number;
|
|
3299
3053
|
}) => void;
|
|
3300
3054
|
sendStatsCustomEvent: (eventName: string, data: unknown) => void;
|
|
3055
|
+
isInitializedWith: ({ selfId, roomName, isSfu }: {
|
|
3056
|
+
selfId: string;
|
|
3057
|
+
roomName: string;
|
|
3058
|
+
isSfu: boolean;
|
|
3059
|
+
}) => boolean;
|
|
3060
|
+
setEventClaim?: ((eventClaim: string) => void) | undefined;
|
|
3061
|
+
hasClient: (clientId: string) => boolean;
|
|
3062
|
+
} | null;
|
|
3063
|
+
rtcManagerDispatcher: {
|
|
3064
|
+
emitter: {
|
|
3065
|
+
emit: <K extends keyof RtcEvents>(eventName: K, args?: RtcEvents[K] | undefined) => void;
|
|
3066
|
+
};
|
|
3067
|
+
currentManager: {
|
|
3068
|
+
acceptNewStream: ({ activeBreakout, clientId, shouldAddLocalVideo, streamId, }: {
|
|
3069
|
+
activeBreakout: boolean;
|
|
3070
|
+
clientId: string;
|
|
3071
|
+
shouldAddLocalVideo: boolean;
|
|
3072
|
+
streamId: string;
|
|
3073
|
+
}) => void;
|
|
3074
|
+
addNewStream: (streamId: string, stream: MediaStream, isAudioEnabled: boolean, isVideoEnabled: boolean) => void;
|
|
3075
|
+
disconnect: (streamId: string, activeBreakout: boolean | null, eventClaim?: string | undefined) => void;
|
|
3076
|
+
disconnectAll: () => void;
|
|
3077
|
+
replaceTrack: (oldTrack: MediaStreamTrack, newTrack: MediaStreamTrack) => void;
|
|
3078
|
+
removeStream: (streamId: string, _stream: MediaStream, requestedByClientId: string | null) => void;
|
|
3079
|
+
shouldAcceptStreamsFromBothSides?: (() => boolean) | undefined;
|
|
3080
|
+
updateStreamResolution: (streamId: string, ignored: null, resolution: {
|
|
3081
|
+
width: number;
|
|
3082
|
+
height: number;
|
|
3083
|
+
}) => void;
|
|
3084
|
+
sendStatsCustomEvent: (eventName: string, data: unknown) => void;
|
|
3085
|
+
isInitializedWith: ({ selfId, roomName, isSfu }: {
|
|
3086
|
+
selfId: string;
|
|
3087
|
+
roomName: string;
|
|
3088
|
+
isSfu: boolean;
|
|
3089
|
+
}) => boolean;
|
|
3090
|
+
setEventClaim?: ((eventClaim: string) => void) | undefined;
|
|
3091
|
+
hasClient: (clientId: string) => boolean;
|
|
3092
|
+
} | null;
|
|
3093
|
+
stopRtcManager: () => void;
|
|
3301
3094
|
} | null;
|
|
3302
|
-
rtcManagerDispatcher: {} | null;
|
|
3303
3095
|
rtcManagerInitialized: boolean;
|
|
3304
3096
|
status: "" | "ready" | "reconnect";
|
|
3305
3097
|
isAcceptingStreams: boolean;
|
|
@@ -3328,16 +3120,16 @@ declare const rtcConnectionSlice: _reduxjs_toolkit.Slice<RtcConnectionState, {
|
|
|
3328
3120
|
};
|
|
3329
3121
|
};
|
|
3330
3122
|
rtcManager: {
|
|
3331
|
-
acceptNewStream: ({ activeBreakout
|
|
3332
|
-
activeBreakout:
|
|
3333
|
-
clientId:
|
|
3334
|
-
shouldAddLocalVideo:
|
|
3335
|
-
streamId:
|
|
3123
|
+
acceptNewStream: ({ activeBreakout, clientId, shouldAddLocalVideo, streamId, }: {
|
|
3124
|
+
activeBreakout: boolean;
|
|
3125
|
+
clientId: string;
|
|
3126
|
+
shouldAddLocalVideo: boolean;
|
|
3127
|
+
streamId: string;
|
|
3336
3128
|
}) => void;
|
|
3337
3129
|
addNewStream: (streamId: string, stream: MediaStream, isAudioEnabled: boolean, isVideoEnabled: boolean) => void;
|
|
3338
|
-
disconnect: (streamId: string, activeBreakout: boolean) => void;
|
|
3130
|
+
disconnect: (streamId: string, activeBreakout: boolean | null, eventClaim?: string | undefined) => void;
|
|
3339
3131
|
disconnectAll: () => void;
|
|
3340
|
-
replaceTrack: (oldTrack: MediaStreamTrack, newTrack: MediaStreamTrack) =>
|
|
3132
|
+
replaceTrack: (oldTrack: MediaStreamTrack, newTrack: MediaStreamTrack) => void;
|
|
3341
3133
|
removeStream: (streamId: string, _stream: MediaStream, requestedByClientId: string | null) => void;
|
|
3342
3134
|
shouldAcceptStreamsFromBothSides?: (() => boolean) | undefined;
|
|
3343
3135
|
updateStreamResolution: (streamId: string, ignored: null, resolution: {
|
|
@@ -3345,8 +3137,46 @@ declare const rtcConnectionSlice: _reduxjs_toolkit.Slice<RtcConnectionState, {
|
|
|
3345
3137
|
height: number;
|
|
3346
3138
|
}) => void;
|
|
3347
3139
|
sendStatsCustomEvent: (eventName: string, data: unknown) => void;
|
|
3140
|
+
isInitializedWith: ({ selfId, roomName, isSfu }: {
|
|
3141
|
+
selfId: string;
|
|
3142
|
+
roomName: string;
|
|
3143
|
+
isSfu: boolean;
|
|
3144
|
+
}) => boolean;
|
|
3145
|
+
setEventClaim?: ((eventClaim: string) => void) | undefined;
|
|
3146
|
+
hasClient: (clientId: string) => boolean;
|
|
3147
|
+
} | null;
|
|
3148
|
+
rtcManagerDispatcher: {
|
|
3149
|
+
emitter: {
|
|
3150
|
+
emit: <K extends keyof RtcEvents>(eventName: K, args?: RtcEvents[K] | undefined) => void;
|
|
3151
|
+
};
|
|
3152
|
+
currentManager: {
|
|
3153
|
+
acceptNewStream: ({ activeBreakout, clientId, shouldAddLocalVideo, streamId, }: {
|
|
3154
|
+
activeBreakout: boolean;
|
|
3155
|
+
clientId: string;
|
|
3156
|
+
shouldAddLocalVideo: boolean;
|
|
3157
|
+
streamId: string;
|
|
3158
|
+
}) => void;
|
|
3159
|
+
addNewStream: (streamId: string, stream: MediaStream, isAudioEnabled: boolean, isVideoEnabled: boolean) => void;
|
|
3160
|
+
disconnect: (streamId: string, activeBreakout: boolean | null, eventClaim?: string | undefined) => void;
|
|
3161
|
+
disconnectAll: () => void;
|
|
3162
|
+
replaceTrack: (oldTrack: MediaStreamTrack, newTrack: MediaStreamTrack) => void;
|
|
3163
|
+
removeStream: (streamId: string, _stream: MediaStream, requestedByClientId: string | null) => void;
|
|
3164
|
+
shouldAcceptStreamsFromBothSides?: (() => boolean) | undefined;
|
|
3165
|
+
updateStreamResolution: (streamId: string, ignored: null, resolution: {
|
|
3166
|
+
width: number;
|
|
3167
|
+
height: number;
|
|
3168
|
+
}) => void;
|
|
3169
|
+
sendStatsCustomEvent: (eventName: string, data: unknown) => void;
|
|
3170
|
+
isInitializedWith: ({ selfId, roomName, isSfu }: {
|
|
3171
|
+
selfId: string;
|
|
3172
|
+
roomName: string;
|
|
3173
|
+
isSfu: boolean;
|
|
3174
|
+
}) => boolean;
|
|
3175
|
+
setEventClaim?: ((eventClaim: string) => void) | undefined;
|
|
3176
|
+
hasClient: (clientId: string) => boolean;
|
|
3177
|
+
} | null;
|
|
3178
|
+
stopRtcManager: () => void;
|
|
3348
3179
|
} | null;
|
|
3349
|
-
rtcManagerDispatcher: {} | null;
|
|
3350
3180
|
rtcManagerInitialized: boolean;
|
|
3351
3181
|
status: "" | "ready" | "reconnect";
|
|
3352
3182
|
isAcceptingStreams: boolean;
|
|
@@ -3362,16 +3192,16 @@ declare const rtcConnectionSlice: _reduxjs_toolkit.Slice<RtcConnectionState, {
|
|
|
3362
3192
|
};
|
|
3363
3193
|
};
|
|
3364
3194
|
rtcManager: {
|
|
3365
|
-
acceptNewStream: ({ activeBreakout
|
|
3366
|
-
activeBreakout:
|
|
3367
|
-
clientId:
|
|
3368
|
-
shouldAddLocalVideo:
|
|
3369
|
-
streamId:
|
|
3195
|
+
acceptNewStream: ({ activeBreakout, clientId, shouldAddLocalVideo, streamId, }: {
|
|
3196
|
+
activeBreakout: boolean;
|
|
3197
|
+
clientId: string;
|
|
3198
|
+
shouldAddLocalVideo: boolean;
|
|
3199
|
+
streamId: string;
|
|
3370
3200
|
}) => void;
|
|
3371
3201
|
addNewStream: (streamId: string, stream: MediaStream, isAudioEnabled: boolean, isVideoEnabled: boolean) => void;
|
|
3372
|
-
disconnect: (streamId: string, activeBreakout: boolean) => void;
|
|
3202
|
+
disconnect: (streamId: string, activeBreakout: boolean | null, eventClaim?: string | undefined) => void;
|
|
3373
3203
|
disconnectAll: () => void;
|
|
3374
|
-
replaceTrack: (oldTrack: MediaStreamTrack, newTrack: MediaStreamTrack) =>
|
|
3204
|
+
replaceTrack: (oldTrack: MediaStreamTrack, newTrack: MediaStreamTrack) => void;
|
|
3375
3205
|
removeStream: (streamId: string, _stream: MediaStream, requestedByClientId: string | null) => void;
|
|
3376
3206
|
shouldAcceptStreamsFromBothSides?: (() => boolean) | undefined;
|
|
3377
3207
|
updateStreamResolution: (streamId: string, ignored: null, resolution: {
|
|
@@ -3379,6 +3209,13 @@ declare const rtcConnectionSlice: _reduxjs_toolkit.Slice<RtcConnectionState, {
|
|
|
3379
3209
|
height: number;
|
|
3380
3210
|
}) => void;
|
|
3381
3211
|
sendStatsCustomEvent: (eventName: string, data: unknown) => void;
|
|
3212
|
+
isInitializedWith: ({ selfId, roomName, isSfu }: {
|
|
3213
|
+
selfId: string;
|
|
3214
|
+
roomName: string;
|
|
3215
|
+
isSfu: boolean;
|
|
3216
|
+
}) => boolean;
|
|
3217
|
+
setEventClaim?: ((eventClaim: string) => void) | undefined;
|
|
3218
|
+
hasClient: (clientId: string) => boolean;
|
|
3382
3219
|
} | null;
|
|
3383
3220
|
rtcManagerInitialized: boolean;
|
|
3384
3221
|
status: "" | "ready" | "reconnect";
|
|
@@ -3395,16 +3232,16 @@ declare const rtcConnectionSlice: _reduxjs_toolkit.Slice<RtcConnectionState, {
|
|
|
3395
3232
|
};
|
|
3396
3233
|
};
|
|
3397
3234
|
rtcManager: {
|
|
3398
|
-
acceptNewStream: ({ activeBreakout
|
|
3399
|
-
activeBreakout:
|
|
3400
|
-
clientId:
|
|
3401
|
-
shouldAddLocalVideo:
|
|
3402
|
-
streamId:
|
|
3235
|
+
acceptNewStream: ({ activeBreakout, clientId, shouldAddLocalVideo, streamId, }: {
|
|
3236
|
+
activeBreakout: boolean;
|
|
3237
|
+
clientId: string;
|
|
3238
|
+
shouldAddLocalVideo: boolean;
|
|
3239
|
+
streamId: string;
|
|
3403
3240
|
}) => void;
|
|
3404
3241
|
addNewStream: (streamId: string, stream: MediaStream, isAudioEnabled: boolean, isVideoEnabled: boolean) => void;
|
|
3405
|
-
disconnect: (streamId: string, activeBreakout: boolean) => void;
|
|
3242
|
+
disconnect: (streamId: string, activeBreakout: boolean | null, eventClaim?: string | undefined) => void;
|
|
3406
3243
|
disconnectAll: () => void;
|
|
3407
|
-
replaceTrack: (oldTrack: MediaStreamTrack, newTrack: MediaStreamTrack) =>
|
|
3244
|
+
replaceTrack: (oldTrack: MediaStreamTrack, newTrack: MediaStreamTrack) => void;
|
|
3408
3245
|
removeStream: (streamId: string, _stream: MediaStream, requestedByClientId: string | null) => void;
|
|
3409
3246
|
shouldAcceptStreamsFromBothSides?: (() => boolean) | undefined;
|
|
3410
3247
|
updateStreamResolution: (streamId: string, ignored: null, resolution: {
|
|
@@ -3412,8 +3249,46 @@ declare const rtcConnectionSlice: _reduxjs_toolkit.Slice<RtcConnectionState, {
|
|
|
3412
3249
|
height: number;
|
|
3413
3250
|
}) => void;
|
|
3414
3251
|
sendStatsCustomEvent: (eventName: string, data: unknown) => void;
|
|
3252
|
+
isInitializedWith: ({ selfId, roomName, isSfu }: {
|
|
3253
|
+
selfId: string;
|
|
3254
|
+
roomName: string;
|
|
3255
|
+
isSfu: boolean;
|
|
3256
|
+
}) => boolean;
|
|
3257
|
+
setEventClaim?: ((eventClaim: string) => void) | undefined;
|
|
3258
|
+
hasClient: (clientId: string) => boolean;
|
|
3259
|
+
} | null;
|
|
3260
|
+
rtcManagerDispatcher: {
|
|
3261
|
+
emitter: {
|
|
3262
|
+
emit: <K extends keyof RtcEvents>(eventName: K, args?: RtcEvents[K] | undefined) => void;
|
|
3263
|
+
};
|
|
3264
|
+
currentManager: {
|
|
3265
|
+
acceptNewStream: ({ activeBreakout, clientId, shouldAddLocalVideo, streamId, }: {
|
|
3266
|
+
activeBreakout: boolean;
|
|
3267
|
+
clientId: string;
|
|
3268
|
+
shouldAddLocalVideo: boolean;
|
|
3269
|
+
streamId: string;
|
|
3270
|
+
}) => void;
|
|
3271
|
+
addNewStream: (streamId: string, stream: MediaStream, isAudioEnabled: boolean, isVideoEnabled: boolean) => void;
|
|
3272
|
+
disconnect: (streamId: string, activeBreakout: boolean | null, eventClaim?: string | undefined) => void;
|
|
3273
|
+
disconnectAll: () => void;
|
|
3274
|
+
replaceTrack: (oldTrack: MediaStreamTrack, newTrack: MediaStreamTrack) => void;
|
|
3275
|
+
removeStream: (streamId: string, _stream: MediaStream, requestedByClientId: string | null) => void;
|
|
3276
|
+
shouldAcceptStreamsFromBothSides?: (() => boolean) | undefined;
|
|
3277
|
+
updateStreamResolution: (streamId: string, ignored: null, resolution: {
|
|
3278
|
+
width: number;
|
|
3279
|
+
height: number;
|
|
3280
|
+
}) => void;
|
|
3281
|
+
sendStatsCustomEvent: (eventName: string, data: unknown) => void;
|
|
3282
|
+
isInitializedWith: ({ selfId, roomName, isSfu }: {
|
|
3283
|
+
selfId: string;
|
|
3284
|
+
roomName: string;
|
|
3285
|
+
isSfu: boolean;
|
|
3286
|
+
}) => boolean;
|
|
3287
|
+
setEventClaim?: ((eventClaim: string) => void) | undefined;
|
|
3288
|
+
hasClient: (clientId: string) => boolean;
|
|
3289
|
+
} | null;
|
|
3290
|
+
stopRtcManager: () => void;
|
|
3415
3291
|
} | null;
|
|
3416
|
-
rtcManagerDispatcher: {} | null;
|
|
3417
3292
|
rtcManagerInitialized: boolean;
|
|
3418
3293
|
status: "" | "ready" | "reconnect";
|
|
3419
3294
|
isAcceptingStreams: boolean;
|
|
@@ -3429,7 +3304,38 @@ declare const rtcConnectionSlice: _reduxjs_toolkit.Slice<RtcConnectionState, {
|
|
|
3429
3304
|
height: number;
|
|
3430
3305
|
};
|
|
3431
3306
|
};
|
|
3432
|
-
rtcManagerDispatcher: {
|
|
3307
|
+
rtcManagerDispatcher: {
|
|
3308
|
+
emitter: {
|
|
3309
|
+
emit: <K extends keyof RtcEvents>(eventName: K, args?: RtcEvents[K] | undefined) => void;
|
|
3310
|
+
};
|
|
3311
|
+
currentManager: {
|
|
3312
|
+
acceptNewStream: ({ activeBreakout, clientId, shouldAddLocalVideo, streamId, }: {
|
|
3313
|
+
activeBreakout: boolean;
|
|
3314
|
+
clientId: string;
|
|
3315
|
+
shouldAddLocalVideo: boolean;
|
|
3316
|
+
streamId: string;
|
|
3317
|
+
}) => void;
|
|
3318
|
+
addNewStream: (streamId: string, stream: MediaStream, isAudioEnabled: boolean, isVideoEnabled: boolean) => void;
|
|
3319
|
+
disconnect: (streamId: string, activeBreakout: boolean | null, eventClaim?: string | undefined) => void;
|
|
3320
|
+
disconnectAll: () => void;
|
|
3321
|
+
replaceTrack: (oldTrack: MediaStreamTrack, newTrack: MediaStreamTrack) => void;
|
|
3322
|
+
removeStream: (streamId: string, _stream: MediaStream, requestedByClientId: string | null) => void;
|
|
3323
|
+
shouldAcceptStreamsFromBothSides?: (() => boolean) | undefined;
|
|
3324
|
+
updateStreamResolution: (streamId: string, ignored: null, resolution: {
|
|
3325
|
+
width: number;
|
|
3326
|
+
height: number;
|
|
3327
|
+
}) => void;
|
|
3328
|
+
sendStatsCustomEvent: (eventName: string, data: unknown) => void;
|
|
3329
|
+
isInitializedWith: ({ selfId, roomName, isSfu }: {
|
|
3330
|
+
selfId: string;
|
|
3331
|
+
roomName: string;
|
|
3332
|
+
isSfu: boolean;
|
|
3333
|
+
}) => boolean;
|
|
3334
|
+
setEventClaim?: ((eventClaim: string) => void) | undefined;
|
|
3335
|
+
hasClient: (clientId: string) => boolean;
|
|
3336
|
+
} | null;
|
|
3337
|
+
stopRtcManager: () => void;
|
|
3338
|
+
} | null;
|
|
3433
3339
|
rtcManagerInitialized: boolean;
|
|
3434
3340
|
isAcceptingStreams: boolean;
|
|
3435
3341
|
};
|
|
@@ -3444,16 +3350,16 @@ declare const rtcConnectionSlice: _reduxjs_toolkit.Slice<RtcConnectionState, {
|
|
|
3444
3350
|
};
|
|
3445
3351
|
};
|
|
3446
3352
|
rtcManager: {
|
|
3447
|
-
acceptNewStream: ({ activeBreakout
|
|
3448
|
-
activeBreakout:
|
|
3449
|
-
clientId:
|
|
3450
|
-
shouldAddLocalVideo:
|
|
3451
|
-
streamId:
|
|
3353
|
+
acceptNewStream: ({ activeBreakout, clientId, shouldAddLocalVideo, streamId, }: {
|
|
3354
|
+
activeBreakout: boolean;
|
|
3355
|
+
clientId: string;
|
|
3356
|
+
shouldAddLocalVideo: boolean;
|
|
3357
|
+
streamId: string;
|
|
3452
3358
|
}) => void;
|
|
3453
3359
|
addNewStream: (streamId: string, stream: MediaStream, isAudioEnabled: boolean, isVideoEnabled: boolean) => void;
|
|
3454
|
-
disconnect: (streamId: string, activeBreakout: boolean) => void;
|
|
3360
|
+
disconnect: (streamId: string, activeBreakout: boolean | null, eventClaim?: string | undefined) => void;
|
|
3455
3361
|
disconnectAll: () => void;
|
|
3456
|
-
replaceTrack: (oldTrack: MediaStreamTrack, newTrack: MediaStreamTrack) =>
|
|
3362
|
+
replaceTrack: (oldTrack: MediaStreamTrack, newTrack: MediaStreamTrack) => void;
|
|
3457
3363
|
removeStream: (streamId: string, _stream: MediaStream, requestedByClientId: string | null) => void;
|
|
3458
3364
|
shouldAcceptStreamsFromBothSides?: (() => boolean) | undefined;
|
|
3459
3365
|
updateStreamResolution: (streamId: string, ignored: null, resolution: {
|
|
@@ -3461,8 +3367,46 @@ declare const rtcConnectionSlice: _reduxjs_toolkit.Slice<RtcConnectionState, {
|
|
|
3461
3367
|
height: number;
|
|
3462
3368
|
}) => void;
|
|
3463
3369
|
sendStatsCustomEvent: (eventName: string, data: unknown) => void;
|
|
3370
|
+
isInitializedWith: ({ selfId, roomName, isSfu }: {
|
|
3371
|
+
selfId: string;
|
|
3372
|
+
roomName: string;
|
|
3373
|
+
isSfu: boolean;
|
|
3374
|
+
}) => boolean;
|
|
3375
|
+
setEventClaim?: ((eventClaim: string) => void) | undefined;
|
|
3376
|
+
hasClient: (clientId: string) => boolean;
|
|
3377
|
+
} | null;
|
|
3378
|
+
rtcManagerDispatcher: {
|
|
3379
|
+
emitter: {
|
|
3380
|
+
emit: <K extends keyof RtcEvents>(eventName: K, args?: RtcEvents[K] | undefined) => void;
|
|
3381
|
+
};
|
|
3382
|
+
currentManager: {
|
|
3383
|
+
acceptNewStream: ({ activeBreakout, clientId, shouldAddLocalVideo, streamId, }: {
|
|
3384
|
+
activeBreakout: boolean;
|
|
3385
|
+
clientId: string;
|
|
3386
|
+
shouldAddLocalVideo: boolean;
|
|
3387
|
+
streamId: string;
|
|
3388
|
+
}) => void;
|
|
3389
|
+
addNewStream: (streamId: string, stream: MediaStream, isAudioEnabled: boolean, isVideoEnabled: boolean) => void;
|
|
3390
|
+
disconnect: (streamId: string, activeBreakout: boolean | null, eventClaim?: string | undefined) => void;
|
|
3391
|
+
disconnectAll: () => void;
|
|
3392
|
+
replaceTrack: (oldTrack: MediaStreamTrack, newTrack: MediaStreamTrack) => void;
|
|
3393
|
+
removeStream: (streamId: string, _stream: MediaStream, requestedByClientId: string | null) => void;
|
|
3394
|
+
shouldAcceptStreamsFromBothSides?: (() => boolean) | undefined;
|
|
3395
|
+
updateStreamResolution: (streamId: string, ignored: null, resolution: {
|
|
3396
|
+
width: number;
|
|
3397
|
+
height: number;
|
|
3398
|
+
}) => void;
|
|
3399
|
+
sendStatsCustomEvent: (eventName: string, data: unknown) => void;
|
|
3400
|
+
isInitializedWith: ({ selfId, roomName, isSfu }: {
|
|
3401
|
+
selfId: string;
|
|
3402
|
+
roomName: string;
|
|
3403
|
+
isSfu: boolean;
|
|
3404
|
+
}) => boolean;
|
|
3405
|
+
setEventClaim?: ((eventClaim: string) => void) | undefined;
|
|
3406
|
+
hasClient: (clientId: string) => boolean;
|
|
3407
|
+
} | null;
|
|
3408
|
+
stopRtcManager: () => void;
|
|
3464
3409
|
} | null;
|
|
3465
|
-
rtcManagerDispatcher: {} | null;
|
|
3466
3410
|
rtcManagerInitialized: boolean;
|
|
3467
3411
|
status: "" | "ready" | "reconnect";
|
|
3468
3412
|
isAcceptingStreams: boolean;
|
|
@@ -3477,7 +3421,38 @@ declare const rtcConnectionSlice: _reduxjs_toolkit.Slice<RtcConnectionState, {
|
|
|
3477
3421
|
height: number;
|
|
3478
3422
|
};
|
|
3479
3423
|
};
|
|
3480
|
-
rtcManagerDispatcher: {
|
|
3424
|
+
rtcManagerDispatcher: {
|
|
3425
|
+
emitter: {
|
|
3426
|
+
emit: <K extends keyof RtcEvents>(eventName: K, args?: RtcEvents[K] | undefined) => void;
|
|
3427
|
+
};
|
|
3428
|
+
currentManager: {
|
|
3429
|
+
acceptNewStream: ({ activeBreakout, clientId, shouldAddLocalVideo, streamId, }: {
|
|
3430
|
+
activeBreakout: boolean;
|
|
3431
|
+
clientId: string;
|
|
3432
|
+
shouldAddLocalVideo: boolean;
|
|
3433
|
+
streamId: string;
|
|
3434
|
+
}) => void;
|
|
3435
|
+
addNewStream: (streamId: string, stream: MediaStream, isAudioEnabled: boolean, isVideoEnabled: boolean) => void;
|
|
3436
|
+
disconnect: (streamId: string, activeBreakout: boolean | null, eventClaim?: string | undefined) => void;
|
|
3437
|
+
disconnectAll: () => void;
|
|
3438
|
+
replaceTrack: (oldTrack: MediaStreamTrack, newTrack: MediaStreamTrack) => void;
|
|
3439
|
+
removeStream: (streamId: string, _stream: MediaStream, requestedByClientId: string | null) => void;
|
|
3440
|
+
shouldAcceptStreamsFromBothSides?: (() => boolean) | undefined;
|
|
3441
|
+
updateStreamResolution: (streamId: string, ignored: null, resolution: {
|
|
3442
|
+
width: number;
|
|
3443
|
+
height: number;
|
|
3444
|
+
}) => void;
|
|
3445
|
+
sendStatsCustomEvent: (eventName: string, data: unknown) => void;
|
|
3446
|
+
isInitializedWith: ({ selfId, roomName, isSfu }: {
|
|
3447
|
+
selfId: string;
|
|
3448
|
+
roomName: string;
|
|
3449
|
+
isSfu: boolean;
|
|
3450
|
+
}) => boolean;
|
|
3451
|
+
setEventClaim?: ((eventClaim: string) => void) | undefined;
|
|
3452
|
+
hasClient: (clientId: string) => boolean;
|
|
3453
|
+
} | null;
|
|
3454
|
+
stopRtcManager: () => void;
|
|
3455
|
+
} | null;
|
|
3481
3456
|
rtcManagerInitialized: boolean;
|
|
3482
3457
|
status: "" | "ready" | "reconnect";
|
|
3483
3458
|
isAcceptingStreams: boolean;
|
|
@@ -3493,16 +3468,16 @@ declare const rtcConnectionSlice: _reduxjs_toolkit.Slice<RtcConnectionState, {
|
|
|
3493
3468
|
};
|
|
3494
3469
|
};
|
|
3495
3470
|
rtcManager: {
|
|
3496
|
-
acceptNewStream: ({ activeBreakout
|
|
3497
|
-
activeBreakout:
|
|
3498
|
-
clientId:
|
|
3499
|
-
shouldAddLocalVideo:
|
|
3500
|
-
streamId:
|
|
3471
|
+
acceptNewStream: ({ activeBreakout, clientId, shouldAddLocalVideo, streamId, }: {
|
|
3472
|
+
activeBreakout: boolean;
|
|
3473
|
+
clientId: string;
|
|
3474
|
+
shouldAddLocalVideo: boolean;
|
|
3475
|
+
streamId: string;
|
|
3501
3476
|
}) => void;
|
|
3502
3477
|
addNewStream: (streamId: string, stream: MediaStream, isAudioEnabled: boolean, isVideoEnabled: boolean) => void;
|
|
3503
|
-
disconnect: (streamId: string, activeBreakout: boolean) => void;
|
|
3478
|
+
disconnect: (streamId: string, activeBreakout: boolean | null, eventClaim?: string | undefined) => void;
|
|
3504
3479
|
disconnectAll: () => void;
|
|
3505
|
-
replaceTrack: (oldTrack: MediaStreamTrack, newTrack: MediaStreamTrack) =>
|
|
3480
|
+
replaceTrack: (oldTrack: MediaStreamTrack, newTrack: MediaStreamTrack) => void;
|
|
3506
3481
|
removeStream: (streamId: string, _stream: MediaStream, requestedByClientId: string | null) => void;
|
|
3507
3482
|
shouldAcceptStreamsFromBothSides?: (() => boolean) | undefined;
|
|
3508
3483
|
updateStreamResolution: (streamId: string, ignored: null, resolution: {
|
|
@@ -3510,8 +3485,46 @@ declare const rtcConnectionSlice: _reduxjs_toolkit.Slice<RtcConnectionState, {
|
|
|
3510
3485
|
height: number;
|
|
3511
3486
|
}) => void;
|
|
3512
3487
|
sendStatsCustomEvent: (eventName: string, data: unknown) => void;
|
|
3488
|
+
isInitializedWith: ({ selfId, roomName, isSfu }: {
|
|
3489
|
+
selfId: string;
|
|
3490
|
+
roomName: string;
|
|
3491
|
+
isSfu: boolean;
|
|
3492
|
+
}) => boolean;
|
|
3493
|
+
setEventClaim?: ((eventClaim: string) => void) | undefined;
|
|
3494
|
+
hasClient: (clientId: string) => boolean;
|
|
3495
|
+
} | null;
|
|
3496
|
+
rtcManagerDispatcher: {
|
|
3497
|
+
emitter: {
|
|
3498
|
+
emit: <K extends keyof RtcEvents>(eventName: K, args?: RtcEvents[K] | undefined) => void;
|
|
3499
|
+
};
|
|
3500
|
+
currentManager: {
|
|
3501
|
+
acceptNewStream: ({ activeBreakout, clientId, shouldAddLocalVideo, streamId, }: {
|
|
3502
|
+
activeBreakout: boolean;
|
|
3503
|
+
clientId: string;
|
|
3504
|
+
shouldAddLocalVideo: boolean;
|
|
3505
|
+
streamId: string;
|
|
3506
|
+
}) => void;
|
|
3507
|
+
addNewStream: (streamId: string, stream: MediaStream, isAudioEnabled: boolean, isVideoEnabled: boolean) => void;
|
|
3508
|
+
disconnect: (streamId: string, activeBreakout: boolean | null, eventClaim?: string | undefined) => void;
|
|
3509
|
+
disconnectAll: () => void;
|
|
3510
|
+
replaceTrack: (oldTrack: MediaStreamTrack, newTrack: MediaStreamTrack) => void;
|
|
3511
|
+
removeStream: (streamId: string, _stream: MediaStream, requestedByClientId: string | null) => void;
|
|
3512
|
+
shouldAcceptStreamsFromBothSides?: (() => boolean) | undefined;
|
|
3513
|
+
updateStreamResolution: (streamId: string, ignored: null, resolution: {
|
|
3514
|
+
width: number;
|
|
3515
|
+
height: number;
|
|
3516
|
+
}) => void;
|
|
3517
|
+
sendStatsCustomEvent: (eventName: string, data: unknown) => void;
|
|
3518
|
+
isInitializedWith: ({ selfId, roomName, isSfu }: {
|
|
3519
|
+
selfId: string;
|
|
3520
|
+
roomName: string;
|
|
3521
|
+
isSfu: boolean;
|
|
3522
|
+
}) => boolean;
|
|
3523
|
+
setEventClaim?: ((eventClaim: string) => void) | undefined;
|
|
3524
|
+
hasClient: (clientId: string) => boolean;
|
|
3525
|
+
} | null;
|
|
3526
|
+
stopRtcManager: () => void;
|
|
3513
3527
|
} | null;
|
|
3514
|
-
rtcManagerDispatcher: {} | null;
|
|
3515
3528
|
rtcManagerInitialized: boolean;
|
|
3516
3529
|
status: "" | "ready" | "reconnect";
|
|
3517
3530
|
isAcceptingStreams: boolean;
|
|
@@ -3527,16 +3540,16 @@ declare const rtcConnectionSlice: _reduxjs_toolkit.Slice<RtcConnectionState, {
|
|
|
3527
3540
|
};
|
|
3528
3541
|
};
|
|
3529
3542
|
rtcManager: {
|
|
3530
|
-
acceptNewStream: ({ activeBreakout
|
|
3531
|
-
activeBreakout:
|
|
3532
|
-
clientId:
|
|
3533
|
-
shouldAddLocalVideo:
|
|
3534
|
-
streamId:
|
|
3543
|
+
acceptNewStream: ({ activeBreakout, clientId, shouldAddLocalVideo, streamId, }: {
|
|
3544
|
+
activeBreakout: boolean;
|
|
3545
|
+
clientId: string;
|
|
3546
|
+
shouldAddLocalVideo: boolean;
|
|
3547
|
+
streamId: string;
|
|
3535
3548
|
}) => void;
|
|
3536
3549
|
addNewStream: (streamId: string, stream: MediaStream, isAudioEnabled: boolean, isVideoEnabled: boolean) => void;
|
|
3537
|
-
disconnect: (streamId: string, activeBreakout: boolean) => void;
|
|
3550
|
+
disconnect: (streamId: string, activeBreakout: boolean | null, eventClaim?: string | undefined) => void;
|
|
3538
3551
|
disconnectAll: () => void;
|
|
3539
|
-
replaceTrack: (oldTrack: MediaStreamTrack, newTrack: MediaStreamTrack) =>
|
|
3552
|
+
replaceTrack: (oldTrack: MediaStreamTrack, newTrack: MediaStreamTrack) => void;
|
|
3540
3553
|
removeStream: (streamId: string, _stream: MediaStream, requestedByClientId: string | null) => void;
|
|
3541
3554
|
shouldAcceptStreamsFromBothSides?: (() => boolean) | undefined;
|
|
3542
3555
|
updateStreamResolution: (streamId: string, ignored: null, resolution: {
|
|
@@ -3544,15 +3557,50 @@ declare const rtcConnectionSlice: _reduxjs_toolkit.Slice<RtcConnectionState, {
|
|
|
3544
3557
|
height: number;
|
|
3545
3558
|
}) => void;
|
|
3546
3559
|
sendStatsCustomEvent: (eventName: string, data: unknown) => void;
|
|
3560
|
+
isInitializedWith: ({ selfId, roomName, isSfu }: {
|
|
3561
|
+
selfId: string;
|
|
3562
|
+
roomName: string;
|
|
3563
|
+
isSfu: boolean;
|
|
3564
|
+
}) => boolean;
|
|
3565
|
+
setEventClaim?: ((eventClaim: string) => void) | undefined;
|
|
3566
|
+
hasClient: (clientId: string) => boolean;
|
|
3567
|
+
} | null;
|
|
3568
|
+
rtcManagerDispatcher: {
|
|
3569
|
+
emitter: {
|
|
3570
|
+
emit: <K extends keyof RtcEvents>(eventName: K, args?: RtcEvents[K] | undefined) => void;
|
|
3571
|
+
};
|
|
3572
|
+
currentManager: {
|
|
3573
|
+
acceptNewStream: ({ activeBreakout, clientId, shouldAddLocalVideo, streamId, }: {
|
|
3574
|
+
activeBreakout: boolean;
|
|
3575
|
+
clientId: string;
|
|
3576
|
+
shouldAddLocalVideo: boolean;
|
|
3577
|
+
streamId: string;
|
|
3578
|
+
}) => void;
|
|
3579
|
+
addNewStream: (streamId: string, stream: MediaStream, isAudioEnabled: boolean, isVideoEnabled: boolean) => void;
|
|
3580
|
+
disconnect: (streamId: string, activeBreakout: boolean | null, eventClaim?: string | undefined) => void;
|
|
3581
|
+
disconnectAll: () => void;
|
|
3582
|
+
replaceTrack: (oldTrack: MediaStreamTrack, newTrack: MediaStreamTrack) => void;
|
|
3583
|
+
removeStream: (streamId: string, _stream: MediaStream, requestedByClientId: string | null) => void;
|
|
3584
|
+
shouldAcceptStreamsFromBothSides?: (() => boolean) | undefined;
|
|
3585
|
+
updateStreamResolution: (streamId: string, ignored: null, resolution: {
|
|
3586
|
+
width: number;
|
|
3587
|
+
height: number;
|
|
3588
|
+
}) => void;
|
|
3589
|
+
sendStatsCustomEvent: (eventName: string, data: unknown) => void;
|
|
3590
|
+
isInitializedWith: ({ selfId, roomName, isSfu }: {
|
|
3591
|
+
selfId: string;
|
|
3592
|
+
roomName: string;
|
|
3593
|
+
isSfu: boolean;
|
|
3594
|
+
}) => boolean;
|
|
3595
|
+
setEventClaim?: ((eventClaim: string) => void) | undefined;
|
|
3596
|
+
hasClient: (clientId: string) => boolean;
|
|
3597
|
+
} | null;
|
|
3598
|
+
stopRtcManager: () => void;
|
|
3547
3599
|
} | null;
|
|
3548
|
-
rtcManagerDispatcher: {} | null;
|
|
3549
3600
|
status: "" | "ready" | "reconnect";
|
|
3550
3601
|
isAcceptingStreams: boolean;
|
|
3551
3602
|
};
|
|
3552
3603
|
}, "rtcConnection", "rtcConnection", _reduxjs_toolkit.SliceSelectors<RtcConnectionState>>;
|
|
3553
|
-
/**
|
|
3554
|
-
* Action creators
|
|
3555
|
-
*/
|
|
3556
3604
|
declare const resolutionReported: _reduxjs_toolkit.ActionCreatorWithPayload<StreamResolutionUpdate, "rtcConnection/resolutionReported">;
|
|
3557
3605
|
declare const rtcDispatcherCreated: _reduxjs_toolkit.ActionCreatorWithPayload<RtcManagerDispatcher, "rtcConnection/rtcDispatcherCreated">;
|
|
3558
3606
|
declare const rtcDisconnected: _reduxjs_toolkit.ActionCreatorWithoutPayload<"rtcConnection/rtcDisconnected">;
|
|
@@ -3566,9 +3614,6 @@ declare const doHandleAcceptStreams: (args: StreamStatusUpdate[]) => AppThunk<vo
|
|
|
3566
3614
|
declare const doRtcReportStreamResolution: (args: StreamResolutionUpdate) => AppThunk<void>;
|
|
3567
3615
|
declare const doRtcManagerCreated: (args: RtcManagerCreatedPayload) => AppThunk<void>;
|
|
3568
3616
|
declare const doRtcManagerInitialize: (args: void) => AppThunk<void>;
|
|
3569
|
-
/**
|
|
3570
|
-
* Selectors
|
|
3571
|
-
*/
|
|
3572
3617
|
declare const selectRtcConnectionRaw: (state: RootState) => RtcConnectionState;
|
|
3573
3618
|
declare const selectRtcManagerInitialized: (state: RootState) => boolean;
|
|
3574
3619
|
declare const selectRtcManager: (state: RootState) => RtcManager | null;
|
|
@@ -3597,8 +3642,8 @@ declare const selectShouldConnectRtc: ((state: {
|
|
|
3597
3642
|
resultsCount: () => number;
|
|
3598
3643
|
resetResultsCount: () => void;
|
|
3599
3644
|
} & {
|
|
3600
|
-
resultFunc: (resultFuncArgs_0: boolean, resultFuncArgs_1: boolean, resultFuncArgs_2:
|
|
3601
|
-
memoizedResultFunc: ((resultFuncArgs_0: boolean, resultFuncArgs_1: boolean, resultFuncArgs_2:
|
|
3645
|
+
resultFunc: (resultFuncArgs_0: boolean, resultFuncArgs_1: boolean, resultFuncArgs_2: _whereby_com_media.ServerSocket | null) => boolean;
|
|
3646
|
+
memoizedResultFunc: ((resultFuncArgs_0: boolean, resultFuncArgs_1: boolean, resultFuncArgs_2: _whereby_com_media.ServerSocket | null) => boolean) & {
|
|
3602
3647
|
clearCache: () => void;
|
|
3603
3648
|
resultsCount: () => number;
|
|
3604
3649
|
resetResultsCount: () => void;
|
|
@@ -3620,7 +3665,7 @@ declare const selectShouldConnectRtc: ((state: {
|
|
|
3620
3665
|
signalConnection: SignalConnectionState;
|
|
3621
3666
|
streaming: StreamingState;
|
|
3622
3667
|
waitingParticipants: WaitingParticipantsState;
|
|
3623
|
-
}) =>
|
|
3668
|
+
}) => _whereby_com_media.ServerSocket | null];
|
|
3624
3669
|
recomputations: () => number;
|
|
3625
3670
|
resetRecomputations: () => void;
|
|
3626
3671
|
dependencyRecomputations: () => number;
|
|
@@ -3805,14 +3850,11 @@ declare const selectStreamsToAccept: ((state: {
|
|
|
3805
3850
|
memoize: typeof reselect.weakMapMemoize;
|
|
3806
3851
|
};
|
|
3807
3852
|
|
|
3808
|
-
/**
|
|
3809
|
-
* Reducer
|
|
3810
|
-
*/
|
|
3811
3853
|
interface SignalConnectionState {
|
|
3812
3854
|
deviceIdentified: boolean;
|
|
3813
3855
|
isIdentifyingDevice: boolean;
|
|
3814
3856
|
status: "connected" | "connecting" | "disconnected" | "reconnect" | "";
|
|
3815
|
-
socket:
|
|
3857
|
+
socket: ServerSocket | null;
|
|
3816
3858
|
}
|
|
3817
3859
|
declare const signalConnectionSlice: _reduxjs_toolkit.Slice<SignalConnectionState, {
|
|
3818
3860
|
socketConnecting: (state: {
|
|
@@ -3820,24 +3862,204 @@ declare const signalConnectionSlice: _reduxjs_toolkit.Slice<SignalConnectionStat
|
|
|
3820
3862
|
isIdentifyingDevice: boolean;
|
|
3821
3863
|
status: "connected" | "connecting" | "disconnected" | "reconnect" | "";
|
|
3822
3864
|
socket: {
|
|
3865
|
+
_socket: any;
|
|
3866
|
+
_reconnectManager?: {
|
|
3867
|
+
_socket: any;
|
|
3868
|
+
_clients: any;
|
|
3869
|
+
_signalDisconnectTime?: number | undefined;
|
|
3870
|
+
rtcManager?: {
|
|
3871
|
+
acceptNewStream: ({ activeBreakout, clientId, shouldAddLocalVideo, streamId, }: {
|
|
3872
|
+
activeBreakout: boolean;
|
|
3873
|
+
clientId: string;
|
|
3874
|
+
shouldAddLocalVideo: boolean;
|
|
3875
|
+
streamId: string;
|
|
3876
|
+
}) => void;
|
|
3877
|
+
addNewStream: (streamId: string, stream: MediaStream, isAudioEnabled: boolean, isVideoEnabled: boolean) => void;
|
|
3878
|
+
disconnect: (streamId: string, activeBreakout: boolean | null, eventClaim?: string | undefined) => void;
|
|
3879
|
+
disconnectAll: () => void;
|
|
3880
|
+
replaceTrack: (oldTrack: MediaStreamTrack, newTrack: MediaStreamTrack) => void;
|
|
3881
|
+
removeStream: (streamId: string, _stream: MediaStream, requestedByClientId: string | null) => void;
|
|
3882
|
+
shouldAcceptStreamsFromBothSides?: (() => boolean) | undefined;
|
|
3883
|
+
updateStreamResolution: (streamId: string, ignored: null, resolution: {
|
|
3884
|
+
width: number;
|
|
3885
|
+
height: number;
|
|
3886
|
+
}) => void;
|
|
3887
|
+
sendStatsCustomEvent: (eventName: string, data: unknown) => void;
|
|
3888
|
+
isInitializedWith: ({ selfId, roomName, isSfu }: {
|
|
3889
|
+
selfId: string;
|
|
3890
|
+
roomName: string;
|
|
3891
|
+
isSfu: boolean;
|
|
3892
|
+
}) => boolean;
|
|
3893
|
+
setEventClaim?: ((eventClaim: string) => void) | undefined;
|
|
3894
|
+
hasClient: (clientId: string) => boolean;
|
|
3895
|
+
} | undefined;
|
|
3896
|
+
metrics: {
|
|
3897
|
+
roomJoinedLate: number;
|
|
3898
|
+
pendingClientCanceled: number;
|
|
3899
|
+
evaluationFailed: number;
|
|
3900
|
+
roomJoined: number;
|
|
3901
|
+
};
|
|
3902
|
+
_onRoomJoined: (payload: any) => Promise<void>;
|
|
3903
|
+
_onClientLeft: (payload: any) => void;
|
|
3904
|
+
_onPendingClientLeft: (payload: any) => void;
|
|
3905
|
+
_onNewClient: (payload: any) => void;
|
|
3906
|
+
_abortIfNotActive: (payload: any) => Promise<void>;
|
|
3907
|
+
_checkIsActive: (clientId: string) => Promise<boolean>;
|
|
3908
|
+
_isClientMediaActive: (stats: any, clientId: string) => boolean;
|
|
3909
|
+
_onAudioEnabled: (payload: any) => void;
|
|
3910
|
+
_onVideoEnabled: (payload: any) => void;
|
|
3911
|
+
_onScreenshareChanged: (payload: any, action: boolean) => void;
|
|
3912
|
+
_hasClientStateChanged: ({ clientId, webcam, mic, screenShare, }: {
|
|
3913
|
+
clientId: string;
|
|
3914
|
+
webcam: boolean;
|
|
3915
|
+
mic: boolean;
|
|
3916
|
+
screenShare: boolean;
|
|
3917
|
+
}) => boolean;
|
|
3918
|
+
_addClientToState: (newClient: any) => void;
|
|
3919
|
+
_wasClientSendingMedia: (clientId: string) => any;
|
|
3920
|
+
_getPendingClientsByDeviceId: (deviceId: string) => unknown[];
|
|
3921
|
+
_resetClientState: (payload: any) => void;
|
|
3922
|
+
[EventEmitter.captureRejectionSymbol]?: ((error: Error, event: string, ...args: any[]) => void) | undefined;
|
|
3923
|
+
addListener: (eventName: string | symbol, listener: (...args: any[]) => void) => _whereby_com_media.ReconnectManager;
|
|
3924
|
+
on: (eventName: string | symbol, listener: (...args: any[]) => void) => _whereby_com_media.ReconnectManager;
|
|
3925
|
+
once: (eventName: string | symbol, listener: (...args: any[]) => void) => _whereby_com_media.ReconnectManager;
|
|
3926
|
+
removeListener: (eventName: string | symbol, listener: (...args: any[]) => void) => _whereby_com_media.ReconnectManager;
|
|
3927
|
+
off: (eventName: string | symbol, listener: (...args: any[]) => void) => _whereby_com_media.ReconnectManager;
|
|
3928
|
+
removeAllListeners: (event?: string | symbol | undefined) => _whereby_com_media.ReconnectManager;
|
|
3929
|
+
setMaxListeners: (n: number) => _whereby_com_media.ReconnectManager;
|
|
3930
|
+
getMaxListeners: () => number;
|
|
3931
|
+
listeners: (eventName: string | symbol) => Function[];
|
|
3932
|
+
rawListeners: (eventName: string | symbol) => Function[];
|
|
3933
|
+
emit: (eventName: string | symbol, ...args: any[]) => boolean;
|
|
3934
|
+
listenerCount: (eventName: string | symbol, listener?: Function | undefined) => number;
|
|
3935
|
+
prependListener: (eventName: string | symbol, listener: (...args: any[]) => void) => _whereby_com_media.ReconnectManager;
|
|
3936
|
+
prependOnceListener: (eventName: string | symbol, listener: (...args: any[]) => void) => _whereby_com_media.ReconnectManager;
|
|
3937
|
+
eventNames: () => (string | symbol)[];
|
|
3938
|
+
} | null | undefined;
|
|
3939
|
+
noopKeepaliveInterval: any;
|
|
3940
|
+
_wasConnectedUsingWebsocket?: boolean | undefined;
|
|
3941
|
+
setRtcManager: (rtcManager?: _whereby_com_media.RtcManager | undefined) => void;
|
|
3823
3942
|
connect: () => void;
|
|
3824
3943
|
disconnect: () => void;
|
|
3825
|
-
|
|
3826
|
-
emit:
|
|
3827
|
-
|
|
3828
|
-
|
|
3944
|
+
disconnectOnConnect: () => void;
|
|
3945
|
+
emit: (eventName: string, ...args: any[]) => void;
|
|
3946
|
+
emitIfConnected: (eventName: string, data: any) => void;
|
|
3947
|
+
getTransport: () => any;
|
|
3948
|
+
getManager: () => any;
|
|
3949
|
+
isConnecting: () => any;
|
|
3950
|
+
isConnected: () => any;
|
|
3951
|
+
on: (eventName: string, handler: Function) => () => void;
|
|
3952
|
+
once: (eventName: string, handler: Function) => void;
|
|
3953
|
+
off: (eventName: string, handler: Function) => void;
|
|
3954
|
+
_interceptEvent: (eventName: string, handler: any) => () => void;
|
|
3955
|
+
getGlitchFreeMetrics: () => {
|
|
3956
|
+
roomJoinedLate: number;
|
|
3957
|
+
pendingClientCanceled: number;
|
|
3958
|
+
evaluationFailed: number;
|
|
3959
|
+
roomJoined: number;
|
|
3960
|
+
} | undefined;
|
|
3829
3961
|
} | null;
|
|
3830
3962
|
}) => {
|
|
3831
3963
|
status: "connecting";
|
|
3832
3964
|
deviceIdentified: boolean;
|
|
3833
3965
|
isIdentifyingDevice: boolean;
|
|
3834
3966
|
socket: {
|
|
3967
|
+
_socket: any;
|
|
3968
|
+
_reconnectManager?: {
|
|
3969
|
+
_socket: any;
|
|
3970
|
+
_clients: any;
|
|
3971
|
+
_signalDisconnectTime?: number | undefined;
|
|
3972
|
+
rtcManager?: {
|
|
3973
|
+
acceptNewStream: ({ activeBreakout, clientId, shouldAddLocalVideo, streamId, }: {
|
|
3974
|
+
activeBreakout: boolean;
|
|
3975
|
+
clientId: string;
|
|
3976
|
+
shouldAddLocalVideo: boolean;
|
|
3977
|
+
streamId: string;
|
|
3978
|
+
}) => void;
|
|
3979
|
+
addNewStream: (streamId: string, stream: MediaStream, isAudioEnabled: boolean, isVideoEnabled: boolean) => void;
|
|
3980
|
+
disconnect: (streamId: string, activeBreakout: boolean | null, eventClaim?: string | undefined) => void;
|
|
3981
|
+
disconnectAll: () => void;
|
|
3982
|
+
replaceTrack: (oldTrack: MediaStreamTrack, newTrack: MediaStreamTrack) => void;
|
|
3983
|
+
removeStream: (streamId: string, _stream: MediaStream, requestedByClientId: string | null) => void;
|
|
3984
|
+
shouldAcceptStreamsFromBothSides?: (() => boolean) | undefined;
|
|
3985
|
+
updateStreamResolution: (streamId: string, ignored: null, resolution: {
|
|
3986
|
+
width: number;
|
|
3987
|
+
height: number;
|
|
3988
|
+
}) => void;
|
|
3989
|
+
sendStatsCustomEvent: (eventName: string, data: unknown) => void;
|
|
3990
|
+
isInitializedWith: ({ selfId, roomName, isSfu }: {
|
|
3991
|
+
selfId: string;
|
|
3992
|
+
roomName: string;
|
|
3993
|
+
isSfu: boolean;
|
|
3994
|
+
}) => boolean;
|
|
3995
|
+
setEventClaim?: ((eventClaim: string) => void) | undefined;
|
|
3996
|
+
hasClient: (clientId: string) => boolean;
|
|
3997
|
+
} | undefined;
|
|
3998
|
+
metrics: {
|
|
3999
|
+
roomJoinedLate: number;
|
|
4000
|
+
pendingClientCanceled: number;
|
|
4001
|
+
evaluationFailed: number;
|
|
4002
|
+
roomJoined: number;
|
|
4003
|
+
};
|
|
4004
|
+
_onRoomJoined: (payload: any) => Promise<void>;
|
|
4005
|
+
_onClientLeft: (payload: any) => void;
|
|
4006
|
+
_onPendingClientLeft: (payload: any) => void;
|
|
4007
|
+
_onNewClient: (payload: any) => void;
|
|
4008
|
+
_abortIfNotActive: (payload: any) => Promise<void>;
|
|
4009
|
+
_checkIsActive: (clientId: string) => Promise<boolean>;
|
|
4010
|
+
_isClientMediaActive: (stats: any, clientId: string) => boolean;
|
|
4011
|
+
_onAudioEnabled: (payload: any) => void;
|
|
4012
|
+
_onVideoEnabled: (payload: any) => void;
|
|
4013
|
+
_onScreenshareChanged: (payload: any, action: boolean) => void;
|
|
4014
|
+
_hasClientStateChanged: ({ clientId, webcam, mic, screenShare, }: {
|
|
4015
|
+
clientId: string;
|
|
4016
|
+
webcam: boolean;
|
|
4017
|
+
mic: boolean;
|
|
4018
|
+
screenShare: boolean;
|
|
4019
|
+
}) => boolean;
|
|
4020
|
+
_addClientToState: (newClient: any) => void;
|
|
4021
|
+
_wasClientSendingMedia: (clientId: string) => any;
|
|
4022
|
+
_getPendingClientsByDeviceId: (deviceId: string) => unknown[];
|
|
4023
|
+
_resetClientState: (payload: any) => void;
|
|
4024
|
+
[EventEmitter.captureRejectionSymbol]?: ((error: Error, event: string, ...args: any[]) => void) | undefined;
|
|
4025
|
+
addListener: (eventName: string | symbol, listener: (...args: any[]) => void) => _whereby_com_media.ReconnectManager;
|
|
4026
|
+
on: (eventName: string | symbol, listener: (...args: any[]) => void) => _whereby_com_media.ReconnectManager;
|
|
4027
|
+
once: (eventName: string | symbol, listener: (...args: any[]) => void) => _whereby_com_media.ReconnectManager;
|
|
4028
|
+
removeListener: (eventName: string | symbol, listener: (...args: any[]) => void) => _whereby_com_media.ReconnectManager;
|
|
4029
|
+
off: (eventName: string | symbol, listener: (...args: any[]) => void) => _whereby_com_media.ReconnectManager;
|
|
4030
|
+
removeAllListeners: (event?: string | symbol | undefined) => _whereby_com_media.ReconnectManager;
|
|
4031
|
+
setMaxListeners: (n: number) => _whereby_com_media.ReconnectManager;
|
|
4032
|
+
getMaxListeners: () => number;
|
|
4033
|
+
listeners: (eventName: string | symbol) => Function[];
|
|
4034
|
+
rawListeners: (eventName: string | symbol) => Function[];
|
|
4035
|
+
emit: (eventName: string | symbol, ...args: any[]) => boolean;
|
|
4036
|
+
listenerCount: (eventName: string | symbol, listener?: Function | undefined) => number;
|
|
4037
|
+
prependListener: (eventName: string | symbol, listener: (...args: any[]) => void) => _whereby_com_media.ReconnectManager;
|
|
4038
|
+
prependOnceListener: (eventName: string | symbol, listener: (...args: any[]) => void) => _whereby_com_media.ReconnectManager;
|
|
4039
|
+
eventNames: () => (string | symbol)[];
|
|
4040
|
+
} | null | undefined;
|
|
4041
|
+
noopKeepaliveInterval: any;
|
|
4042
|
+
_wasConnectedUsingWebsocket?: boolean | undefined;
|
|
4043
|
+
setRtcManager: (rtcManager?: _whereby_com_media.RtcManager | undefined) => void;
|
|
3835
4044
|
connect: () => void;
|
|
3836
4045
|
disconnect: () => void;
|
|
3837
|
-
|
|
3838
|
-
emit:
|
|
3839
|
-
|
|
3840
|
-
|
|
4046
|
+
disconnectOnConnect: () => void;
|
|
4047
|
+
emit: (eventName: string, ...args: any[]) => void;
|
|
4048
|
+
emitIfConnected: (eventName: string, data: any) => void;
|
|
4049
|
+
getTransport: () => any;
|
|
4050
|
+
getManager: () => any;
|
|
4051
|
+
isConnecting: () => any;
|
|
4052
|
+
isConnected: () => any;
|
|
4053
|
+
on: (eventName: string, handler: Function) => () => void;
|
|
4054
|
+
once: (eventName: string, handler: Function) => void;
|
|
4055
|
+
off: (eventName: string, handler: Function) => void;
|
|
4056
|
+
_interceptEvent: (eventName: string, handler: any) => () => void;
|
|
4057
|
+
getGlitchFreeMetrics: () => {
|
|
4058
|
+
roomJoinedLate: number;
|
|
4059
|
+
pendingClientCanceled: number;
|
|
4060
|
+
evaluationFailed: number;
|
|
4061
|
+
roomJoined: number;
|
|
4062
|
+
} | undefined;
|
|
3841
4063
|
} | null;
|
|
3842
4064
|
};
|
|
3843
4065
|
socketConnected: (state: {
|
|
@@ -3845,15 +4067,105 @@ declare const signalConnectionSlice: _reduxjs_toolkit.Slice<SignalConnectionStat
|
|
|
3845
4067
|
isIdentifyingDevice: boolean;
|
|
3846
4068
|
status: "connected" | "connecting" | "disconnected" | "reconnect" | "";
|
|
3847
4069
|
socket: {
|
|
4070
|
+
_socket: any;
|
|
4071
|
+
_reconnectManager?: {
|
|
4072
|
+
_socket: any;
|
|
4073
|
+
_clients: any;
|
|
4074
|
+
_signalDisconnectTime?: number | undefined;
|
|
4075
|
+
rtcManager?: {
|
|
4076
|
+
acceptNewStream: ({ activeBreakout, clientId, shouldAddLocalVideo, streamId, }: {
|
|
4077
|
+
activeBreakout: boolean;
|
|
4078
|
+
clientId: string;
|
|
4079
|
+
shouldAddLocalVideo: boolean;
|
|
4080
|
+
streamId: string;
|
|
4081
|
+
}) => void;
|
|
4082
|
+
addNewStream: (streamId: string, stream: MediaStream, isAudioEnabled: boolean, isVideoEnabled: boolean) => void;
|
|
4083
|
+
disconnect: (streamId: string, activeBreakout: boolean | null, eventClaim?: string | undefined) => void;
|
|
4084
|
+
disconnectAll: () => void;
|
|
4085
|
+
replaceTrack: (oldTrack: MediaStreamTrack, newTrack: MediaStreamTrack) => void;
|
|
4086
|
+
removeStream: (streamId: string, _stream: MediaStream, requestedByClientId: string | null) => void;
|
|
4087
|
+
shouldAcceptStreamsFromBothSides?: (() => boolean) | undefined;
|
|
4088
|
+
updateStreamResolution: (streamId: string, ignored: null, resolution: {
|
|
4089
|
+
width: number;
|
|
4090
|
+
height: number;
|
|
4091
|
+
}) => void;
|
|
4092
|
+
sendStatsCustomEvent: (eventName: string, data: unknown) => void;
|
|
4093
|
+
isInitializedWith: ({ selfId, roomName, isSfu }: {
|
|
4094
|
+
selfId: string;
|
|
4095
|
+
roomName: string;
|
|
4096
|
+
isSfu: boolean;
|
|
4097
|
+
}) => boolean;
|
|
4098
|
+
setEventClaim?: ((eventClaim: string) => void) | undefined;
|
|
4099
|
+
hasClient: (clientId: string) => boolean;
|
|
4100
|
+
} | undefined;
|
|
4101
|
+
metrics: {
|
|
4102
|
+
roomJoinedLate: number;
|
|
4103
|
+
pendingClientCanceled: number;
|
|
4104
|
+
evaluationFailed: number;
|
|
4105
|
+
roomJoined: number;
|
|
4106
|
+
};
|
|
4107
|
+
_onRoomJoined: (payload: any) => Promise<void>;
|
|
4108
|
+
_onClientLeft: (payload: any) => void;
|
|
4109
|
+
_onPendingClientLeft: (payload: any) => void;
|
|
4110
|
+
_onNewClient: (payload: any) => void;
|
|
4111
|
+
_abortIfNotActive: (payload: any) => Promise<void>;
|
|
4112
|
+
_checkIsActive: (clientId: string) => Promise<boolean>;
|
|
4113
|
+
_isClientMediaActive: (stats: any, clientId: string) => boolean;
|
|
4114
|
+
_onAudioEnabled: (payload: any) => void;
|
|
4115
|
+
_onVideoEnabled: (payload: any) => void;
|
|
4116
|
+
_onScreenshareChanged: (payload: any, action: boolean) => void;
|
|
4117
|
+
_hasClientStateChanged: ({ clientId, webcam, mic, screenShare, }: {
|
|
4118
|
+
clientId: string;
|
|
4119
|
+
webcam: boolean;
|
|
4120
|
+
mic: boolean;
|
|
4121
|
+
screenShare: boolean;
|
|
4122
|
+
}) => boolean;
|
|
4123
|
+
_addClientToState: (newClient: any) => void;
|
|
4124
|
+
_wasClientSendingMedia: (clientId: string) => any;
|
|
4125
|
+
_getPendingClientsByDeviceId: (deviceId: string) => unknown[];
|
|
4126
|
+
_resetClientState: (payload: any) => void;
|
|
4127
|
+
[EventEmitter.captureRejectionSymbol]?: ((error: Error, event: string, ...args: any[]) => void) | undefined;
|
|
4128
|
+
addListener: (eventName: string | symbol, listener: (...args: any[]) => void) => _whereby_com_media.ReconnectManager;
|
|
4129
|
+
on: (eventName: string | symbol, listener: (...args: any[]) => void) => _whereby_com_media.ReconnectManager;
|
|
4130
|
+
once: (eventName: string | symbol, listener: (...args: any[]) => void) => _whereby_com_media.ReconnectManager;
|
|
4131
|
+
removeListener: (eventName: string | symbol, listener: (...args: any[]) => void) => _whereby_com_media.ReconnectManager;
|
|
4132
|
+
off: (eventName: string | symbol, listener: (...args: any[]) => void) => _whereby_com_media.ReconnectManager;
|
|
4133
|
+
removeAllListeners: (event?: string | symbol | undefined) => _whereby_com_media.ReconnectManager;
|
|
4134
|
+
setMaxListeners: (n: number) => _whereby_com_media.ReconnectManager;
|
|
4135
|
+
getMaxListeners: () => number;
|
|
4136
|
+
listeners: (eventName: string | symbol) => Function[];
|
|
4137
|
+
rawListeners: (eventName: string | symbol) => Function[];
|
|
4138
|
+
emit: (eventName: string | symbol, ...args: any[]) => boolean;
|
|
4139
|
+
listenerCount: (eventName: string | symbol, listener?: Function | undefined) => number;
|
|
4140
|
+
prependListener: (eventName: string | symbol, listener: (...args: any[]) => void) => _whereby_com_media.ReconnectManager;
|
|
4141
|
+
prependOnceListener: (eventName: string | symbol, listener: (...args: any[]) => void) => _whereby_com_media.ReconnectManager;
|
|
4142
|
+
eventNames: () => (string | symbol)[];
|
|
4143
|
+
} | null | undefined;
|
|
4144
|
+
noopKeepaliveInterval: any;
|
|
4145
|
+
_wasConnectedUsingWebsocket?: boolean | undefined;
|
|
4146
|
+
setRtcManager: (rtcManager?: _whereby_com_media.RtcManager | undefined) => void;
|
|
3848
4147
|
connect: () => void;
|
|
3849
4148
|
disconnect: () => void;
|
|
3850
|
-
|
|
3851
|
-
emit:
|
|
3852
|
-
|
|
3853
|
-
|
|
4149
|
+
disconnectOnConnect: () => void;
|
|
4150
|
+
emit: (eventName: string, ...args: any[]) => void;
|
|
4151
|
+
emitIfConnected: (eventName: string, data: any) => void;
|
|
4152
|
+
getTransport: () => any;
|
|
4153
|
+
getManager: () => any;
|
|
4154
|
+
isConnecting: () => any;
|
|
4155
|
+
isConnected: () => any;
|
|
4156
|
+
on: (eventName: string, handler: Function) => () => void;
|
|
4157
|
+
once: (eventName: string, handler: Function) => void;
|
|
4158
|
+
off: (eventName: string, handler: Function) => void;
|
|
4159
|
+
_interceptEvent: (eventName: string, handler: any) => () => void;
|
|
4160
|
+
getGlitchFreeMetrics: () => {
|
|
4161
|
+
roomJoinedLate: number;
|
|
4162
|
+
pendingClientCanceled: number;
|
|
4163
|
+
evaluationFailed: number;
|
|
4164
|
+
roomJoined: number;
|
|
4165
|
+
} | undefined;
|
|
3854
4166
|
} | null;
|
|
3855
|
-
}, action: PayloadAction<
|
|
3856
|
-
socket:
|
|
4167
|
+
}, action: PayloadAction<ServerSocket>) => {
|
|
4168
|
+
socket: ServerSocket;
|
|
3857
4169
|
status: "connected";
|
|
3858
4170
|
deviceIdentified: boolean;
|
|
3859
4171
|
isIdentifyingDevice: boolean;
|
|
@@ -3863,24 +4175,204 @@ declare const signalConnectionSlice: _reduxjs_toolkit.Slice<SignalConnectionStat
|
|
|
3863
4175
|
isIdentifyingDevice: boolean;
|
|
3864
4176
|
status: "connected" | "connecting" | "disconnected" | "reconnect" | "";
|
|
3865
4177
|
socket: {
|
|
4178
|
+
_socket: any;
|
|
4179
|
+
_reconnectManager?: {
|
|
4180
|
+
_socket: any;
|
|
4181
|
+
_clients: any;
|
|
4182
|
+
_signalDisconnectTime?: number | undefined;
|
|
4183
|
+
rtcManager?: {
|
|
4184
|
+
acceptNewStream: ({ activeBreakout, clientId, shouldAddLocalVideo, streamId, }: {
|
|
4185
|
+
activeBreakout: boolean;
|
|
4186
|
+
clientId: string;
|
|
4187
|
+
shouldAddLocalVideo: boolean;
|
|
4188
|
+
streamId: string;
|
|
4189
|
+
}) => void;
|
|
4190
|
+
addNewStream: (streamId: string, stream: MediaStream, isAudioEnabled: boolean, isVideoEnabled: boolean) => void;
|
|
4191
|
+
disconnect: (streamId: string, activeBreakout: boolean | null, eventClaim?: string | undefined) => void;
|
|
4192
|
+
disconnectAll: () => void;
|
|
4193
|
+
replaceTrack: (oldTrack: MediaStreamTrack, newTrack: MediaStreamTrack) => void;
|
|
4194
|
+
removeStream: (streamId: string, _stream: MediaStream, requestedByClientId: string | null) => void;
|
|
4195
|
+
shouldAcceptStreamsFromBothSides?: (() => boolean) | undefined;
|
|
4196
|
+
updateStreamResolution: (streamId: string, ignored: null, resolution: {
|
|
4197
|
+
width: number;
|
|
4198
|
+
height: number;
|
|
4199
|
+
}) => void;
|
|
4200
|
+
sendStatsCustomEvent: (eventName: string, data: unknown) => void;
|
|
4201
|
+
isInitializedWith: ({ selfId, roomName, isSfu }: {
|
|
4202
|
+
selfId: string;
|
|
4203
|
+
roomName: string;
|
|
4204
|
+
isSfu: boolean;
|
|
4205
|
+
}) => boolean;
|
|
4206
|
+
setEventClaim?: ((eventClaim: string) => void) | undefined;
|
|
4207
|
+
hasClient: (clientId: string) => boolean;
|
|
4208
|
+
} | undefined;
|
|
4209
|
+
metrics: {
|
|
4210
|
+
roomJoinedLate: number;
|
|
4211
|
+
pendingClientCanceled: number;
|
|
4212
|
+
evaluationFailed: number;
|
|
4213
|
+
roomJoined: number;
|
|
4214
|
+
};
|
|
4215
|
+
_onRoomJoined: (payload: any) => Promise<void>;
|
|
4216
|
+
_onClientLeft: (payload: any) => void;
|
|
4217
|
+
_onPendingClientLeft: (payload: any) => void;
|
|
4218
|
+
_onNewClient: (payload: any) => void;
|
|
4219
|
+
_abortIfNotActive: (payload: any) => Promise<void>;
|
|
4220
|
+
_checkIsActive: (clientId: string) => Promise<boolean>;
|
|
4221
|
+
_isClientMediaActive: (stats: any, clientId: string) => boolean;
|
|
4222
|
+
_onAudioEnabled: (payload: any) => void;
|
|
4223
|
+
_onVideoEnabled: (payload: any) => void;
|
|
4224
|
+
_onScreenshareChanged: (payload: any, action: boolean) => void;
|
|
4225
|
+
_hasClientStateChanged: ({ clientId, webcam, mic, screenShare, }: {
|
|
4226
|
+
clientId: string;
|
|
4227
|
+
webcam: boolean;
|
|
4228
|
+
mic: boolean;
|
|
4229
|
+
screenShare: boolean;
|
|
4230
|
+
}) => boolean;
|
|
4231
|
+
_addClientToState: (newClient: any) => void;
|
|
4232
|
+
_wasClientSendingMedia: (clientId: string) => any;
|
|
4233
|
+
_getPendingClientsByDeviceId: (deviceId: string) => unknown[];
|
|
4234
|
+
_resetClientState: (payload: any) => void;
|
|
4235
|
+
[EventEmitter.captureRejectionSymbol]?: ((error: Error, event: string, ...args: any[]) => void) | undefined;
|
|
4236
|
+
addListener: (eventName: string | symbol, listener: (...args: any[]) => void) => _whereby_com_media.ReconnectManager;
|
|
4237
|
+
on: (eventName: string | symbol, listener: (...args: any[]) => void) => _whereby_com_media.ReconnectManager;
|
|
4238
|
+
once: (eventName: string | symbol, listener: (...args: any[]) => void) => _whereby_com_media.ReconnectManager;
|
|
4239
|
+
removeListener: (eventName: string | symbol, listener: (...args: any[]) => void) => _whereby_com_media.ReconnectManager;
|
|
4240
|
+
off: (eventName: string | symbol, listener: (...args: any[]) => void) => _whereby_com_media.ReconnectManager;
|
|
4241
|
+
removeAllListeners: (event?: string | symbol | undefined) => _whereby_com_media.ReconnectManager;
|
|
4242
|
+
setMaxListeners: (n: number) => _whereby_com_media.ReconnectManager;
|
|
4243
|
+
getMaxListeners: () => number;
|
|
4244
|
+
listeners: (eventName: string | symbol) => Function[];
|
|
4245
|
+
rawListeners: (eventName: string | symbol) => Function[];
|
|
4246
|
+
emit: (eventName: string | symbol, ...args: any[]) => boolean;
|
|
4247
|
+
listenerCount: (eventName: string | symbol, listener?: Function | undefined) => number;
|
|
4248
|
+
prependListener: (eventName: string | symbol, listener: (...args: any[]) => void) => _whereby_com_media.ReconnectManager;
|
|
4249
|
+
prependOnceListener: (eventName: string | symbol, listener: (...args: any[]) => void) => _whereby_com_media.ReconnectManager;
|
|
4250
|
+
eventNames: () => (string | symbol)[];
|
|
4251
|
+
} | null | undefined;
|
|
4252
|
+
noopKeepaliveInterval: any;
|
|
4253
|
+
_wasConnectedUsingWebsocket?: boolean | undefined;
|
|
4254
|
+
setRtcManager: (rtcManager?: _whereby_com_media.RtcManager | undefined) => void;
|
|
3866
4255
|
connect: () => void;
|
|
3867
4256
|
disconnect: () => void;
|
|
3868
|
-
|
|
3869
|
-
emit:
|
|
3870
|
-
|
|
3871
|
-
|
|
4257
|
+
disconnectOnConnect: () => void;
|
|
4258
|
+
emit: (eventName: string, ...args: any[]) => void;
|
|
4259
|
+
emitIfConnected: (eventName: string, data: any) => void;
|
|
4260
|
+
getTransport: () => any;
|
|
4261
|
+
getManager: () => any;
|
|
4262
|
+
isConnecting: () => any;
|
|
4263
|
+
isConnected: () => any;
|
|
4264
|
+
on: (eventName: string, handler: Function) => () => void;
|
|
4265
|
+
once: (eventName: string, handler: Function) => void;
|
|
4266
|
+
off: (eventName: string, handler: Function) => void;
|
|
4267
|
+
_interceptEvent: (eventName: string, handler: any) => () => void;
|
|
4268
|
+
getGlitchFreeMetrics: () => {
|
|
4269
|
+
roomJoinedLate: number;
|
|
4270
|
+
pendingClientCanceled: number;
|
|
4271
|
+
evaluationFailed: number;
|
|
4272
|
+
roomJoined: number;
|
|
4273
|
+
} | undefined;
|
|
3872
4274
|
} | null;
|
|
3873
4275
|
}) => {
|
|
3874
4276
|
status: "disconnected";
|
|
3875
4277
|
deviceIdentified: boolean;
|
|
3876
4278
|
isIdentifyingDevice: boolean;
|
|
3877
4279
|
socket: {
|
|
4280
|
+
_socket: any;
|
|
4281
|
+
_reconnectManager?: {
|
|
4282
|
+
_socket: any;
|
|
4283
|
+
_clients: any;
|
|
4284
|
+
_signalDisconnectTime?: number | undefined;
|
|
4285
|
+
rtcManager?: {
|
|
4286
|
+
acceptNewStream: ({ activeBreakout, clientId, shouldAddLocalVideo, streamId, }: {
|
|
4287
|
+
activeBreakout: boolean;
|
|
4288
|
+
clientId: string;
|
|
4289
|
+
shouldAddLocalVideo: boolean;
|
|
4290
|
+
streamId: string;
|
|
4291
|
+
}) => void;
|
|
4292
|
+
addNewStream: (streamId: string, stream: MediaStream, isAudioEnabled: boolean, isVideoEnabled: boolean) => void;
|
|
4293
|
+
disconnect: (streamId: string, activeBreakout: boolean | null, eventClaim?: string | undefined) => void;
|
|
4294
|
+
disconnectAll: () => void;
|
|
4295
|
+
replaceTrack: (oldTrack: MediaStreamTrack, newTrack: MediaStreamTrack) => void;
|
|
4296
|
+
removeStream: (streamId: string, _stream: MediaStream, requestedByClientId: string | null) => void;
|
|
4297
|
+
shouldAcceptStreamsFromBothSides?: (() => boolean) | undefined;
|
|
4298
|
+
updateStreamResolution: (streamId: string, ignored: null, resolution: {
|
|
4299
|
+
width: number;
|
|
4300
|
+
height: number;
|
|
4301
|
+
}) => void;
|
|
4302
|
+
sendStatsCustomEvent: (eventName: string, data: unknown) => void;
|
|
4303
|
+
isInitializedWith: ({ selfId, roomName, isSfu }: {
|
|
4304
|
+
selfId: string;
|
|
4305
|
+
roomName: string;
|
|
4306
|
+
isSfu: boolean;
|
|
4307
|
+
}) => boolean;
|
|
4308
|
+
setEventClaim?: ((eventClaim: string) => void) | undefined;
|
|
4309
|
+
hasClient: (clientId: string) => boolean;
|
|
4310
|
+
} | undefined;
|
|
4311
|
+
metrics: {
|
|
4312
|
+
roomJoinedLate: number;
|
|
4313
|
+
pendingClientCanceled: number;
|
|
4314
|
+
evaluationFailed: number;
|
|
4315
|
+
roomJoined: number;
|
|
4316
|
+
};
|
|
4317
|
+
_onRoomJoined: (payload: any) => Promise<void>;
|
|
4318
|
+
_onClientLeft: (payload: any) => void;
|
|
4319
|
+
_onPendingClientLeft: (payload: any) => void;
|
|
4320
|
+
_onNewClient: (payload: any) => void;
|
|
4321
|
+
_abortIfNotActive: (payload: any) => Promise<void>;
|
|
4322
|
+
_checkIsActive: (clientId: string) => Promise<boolean>;
|
|
4323
|
+
_isClientMediaActive: (stats: any, clientId: string) => boolean;
|
|
4324
|
+
_onAudioEnabled: (payload: any) => void;
|
|
4325
|
+
_onVideoEnabled: (payload: any) => void;
|
|
4326
|
+
_onScreenshareChanged: (payload: any, action: boolean) => void;
|
|
4327
|
+
_hasClientStateChanged: ({ clientId, webcam, mic, screenShare, }: {
|
|
4328
|
+
clientId: string;
|
|
4329
|
+
webcam: boolean;
|
|
4330
|
+
mic: boolean;
|
|
4331
|
+
screenShare: boolean;
|
|
4332
|
+
}) => boolean;
|
|
4333
|
+
_addClientToState: (newClient: any) => void;
|
|
4334
|
+
_wasClientSendingMedia: (clientId: string) => any;
|
|
4335
|
+
_getPendingClientsByDeviceId: (deviceId: string) => unknown[];
|
|
4336
|
+
_resetClientState: (payload: any) => void;
|
|
4337
|
+
[EventEmitter.captureRejectionSymbol]?: ((error: Error, event: string, ...args: any[]) => void) | undefined;
|
|
4338
|
+
addListener: (eventName: string | symbol, listener: (...args: any[]) => void) => _whereby_com_media.ReconnectManager;
|
|
4339
|
+
on: (eventName: string | symbol, listener: (...args: any[]) => void) => _whereby_com_media.ReconnectManager;
|
|
4340
|
+
once: (eventName: string | symbol, listener: (...args: any[]) => void) => _whereby_com_media.ReconnectManager;
|
|
4341
|
+
removeListener: (eventName: string | symbol, listener: (...args: any[]) => void) => _whereby_com_media.ReconnectManager;
|
|
4342
|
+
off: (eventName: string | symbol, listener: (...args: any[]) => void) => _whereby_com_media.ReconnectManager;
|
|
4343
|
+
removeAllListeners: (event?: string | symbol | undefined) => _whereby_com_media.ReconnectManager;
|
|
4344
|
+
setMaxListeners: (n: number) => _whereby_com_media.ReconnectManager;
|
|
4345
|
+
getMaxListeners: () => number;
|
|
4346
|
+
listeners: (eventName: string | symbol) => Function[];
|
|
4347
|
+
rawListeners: (eventName: string | symbol) => Function[];
|
|
4348
|
+
emit: (eventName: string | symbol, ...args: any[]) => boolean;
|
|
4349
|
+
listenerCount: (eventName: string | symbol, listener?: Function | undefined) => number;
|
|
4350
|
+
prependListener: (eventName: string | symbol, listener: (...args: any[]) => void) => _whereby_com_media.ReconnectManager;
|
|
4351
|
+
prependOnceListener: (eventName: string | symbol, listener: (...args: any[]) => void) => _whereby_com_media.ReconnectManager;
|
|
4352
|
+
eventNames: () => (string | symbol)[];
|
|
4353
|
+
} | null | undefined;
|
|
4354
|
+
noopKeepaliveInterval: any;
|
|
4355
|
+
_wasConnectedUsingWebsocket?: boolean | undefined;
|
|
4356
|
+
setRtcManager: (rtcManager?: _whereby_com_media.RtcManager | undefined) => void;
|
|
3878
4357
|
connect: () => void;
|
|
3879
4358
|
disconnect: () => void;
|
|
3880
|
-
|
|
3881
|
-
emit:
|
|
3882
|
-
|
|
3883
|
-
|
|
4359
|
+
disconnectOnConnect: () => void;
|
|
4360
|
+
emit: (eventName: string, ...args: any[]) => void;
|
|
4361
|
+
emitIfConnected: (eventName: string, data: any) => void;
|
|
4362
|
+
getTransport: () => any;
|
|
4363
|
+
getManager: () => any;
|
|
4364
|
+
isConnecting: () => any;
|
|
4365
|
+
isConnected: () => any;
|
|
4366
|
+
on: (eventName: string, handler: Function) => () => void;
|
|
4367
|
+
once: (eventName: string, handler: Function) => void;
|
|
4368
|
+
off: (eventName: string, handler: Function) => void;
|
|
4369
|
+
_interceptEvent: (eventName: string, handler: any) => () => void;
|
|
4370
|
+
getGlitchFreeMetrics: () => {
|
|
4371
|
+
roomJoinedLate: number;
|
|
4372
|
+
pendingClientCanceled: number;
|
|
4373
|
+
evaluationFailed: number;
|
|
4374
|
+
roomJoined: number;
|
|
4375
|
+
} | undefined;
|
|
3884
4376
|
} | null;
|
|
3885
4377
|
};
|
|
3886
4378
|
socketReconnecting: (state: {
|
|
@@ -3888,24 +4380,204 @@ declare const signalConnectionSlice: _reduxjs_toolkit.Slice<SignalConnectionStat
|
|
|
3888
4380
|
isIdentifyingDevice: boolean;
|
|
3889
4381
|
status: "connected" | "connecting" | "disconnected" | "reconnect" | "";
|
|
3890
4382
|
socket: {
|
|
4383
|
+
_socket: any;
|
|
4384
|
+
_reconnectManager?: {
|
|
4385
|
+
_socket: any;
|
|
4386
|
+
_clients: any;
|
|
4387
|
+
_signalDisconnectTime?: number | undefined;
|
|
4388
|
+
rtcManager?: {
|
|
4389
|
+
acceptNewStream: ({ activeBreakout, clientId, shouldAddLocalVideo, streamId, }: {
|
|
4390
|
+
activeBreakout: boolean;
|
|
4391
|
+
clientId: string;
|
|
4392
|
+
shouldAddLocalVideo: boolean;
|
|
4393
|
+
streamId: string;
|
|
4394
|
+
}) => void;
|
|
4395
|
+
addNewStream: (streamId: string, stream: MediaStream, isAudioEnabled: boolean, isVideoEnabled: boolean) => void;
|
|
4396
|
+
disconnect: (streamId: string, activeBreakout: boolean | null, eventClaim?: string | undefined) => void;
|
|
4397
|
+
disconnectAll: () => void;
|
|
4398
|
+
replaceTrack: (oldTrack: MediaStreamTrack, newTrack: MediaStreamTrack) => void;
|
|
4399
|
+
removeStream: (streamId: string, _stream: MediaStream, requestedByClientId: string | null) => void;
|
|
4400
|
+
shouldAcceptStreamsFromBothSides?: (() => boolean) | undefined;
|
|
4401
|
+
updateStreamResolution: (streamId: string, ignored: null, resolution: {
|
|
4402
|
+
width: number;
|
|
4403
|
+
height: number;
|
|
4404
|
+
}) => void;
|
|
4405
|
+
sendStatsCustomEvent: (eventName: string, data: unknown) => void;
|
|
4406
|
+
isInitializedWith: ({ selfId, roomName, isSfu }: {
|
|
4407
|
+
selfId: string;
|
|
4408
|
+
roomName: string;
|
|
4409
|
+
isSfu: boolean;
|
|
4410
|
+
}) => boolean;
|
|
4411
|
+
setEventClaim?: ((eventClaim: string) => void) | undefined;
|
|
4412
|
+
hasClient: (clientId: string) => boolean;
|
|
4413
|
+
} | undefined;
|
|
4414
|
+
metrics: {
|
|
4415
|
+
roomJoinedLate: number;
|
|
4416
|
+
pendingClientCanceled: number;
|
|
4417
|
+
evaluationFailed: number;
|
|
4418
|
+
roomJoined: number;
|
|
4419
|
+
};
|
|
4420
|
+
_onRoomJoined: (payload: any) => Promise<void>;
|
|
4421
|
+
_onClientLeft: (payload: any) => void;
|
|
4422
|
+
_onPendingClientLeft: (payload: any) => void;
|
|
4423
|
+
_onNewClient: (payload: any) => void;
|
|
4424
|
+
_abortIfNotActive: (payload: any) => Promise<void>;
|
|
4425
|
+
_checkIsActive: (clientId: string) => Promise<boolean>;
|
|
4426
|
+
_isClientMediaActive: (stats: any, clientId: string) => boolean;
|
|
4427
|
+
_onAudioEnabled: (payload: any) => void;
|
|
4428
|
+
_onVideoEnabled: (payload: any) => void;
|
|
4429
|
+
_onScreenshareChanged: (payload: any, action: boolean) => void;
|
|
4430
|
+
_hasClientStateChanged: ({ clientId, webcam, mic, screenShare, }: {
|
|
4431
|
+
clientId: string;
|
|
4432
|
+
webcam: boolean;
|
|
4433
|
+
mic: boolean;
|
|
4434
|
+
screenShare: boolean;
|
|
4435
|
+
}) => boolean;
|
|
4436
|
+
_addClientToState: (newClient: any) => void;
|
|
4437
|
+
_wasClientSendingMedia: (clientId: string) => any;
|
|
4438
|
+
_getPendingClientsByDeviceId: (deviceId: string) => unknown[];
|
|
4439
|
+
_resetClientState: (payload: any) => void;
|
|
4440
|
+
[EventEmitter.captureRejectionSymbol]?: ((error: Error, event: string, ...args: any[]) => void) | undefined;
|
|
4441
|
+
addListener: (eventName: string | symbol, listener: (...args: any[]) => void) => _whereby_com_media.ReconnectManager;
|
|
4442
|
+
on: (eventName: string | symbol, listener: (...args: any[]) => void) => _whereby_com_media.ReconnectManager;
|
|
4443
|
+
once: (eventName: string | symbol, listener: (...args: any[]) => void) => _whereby_com_media.ReconnectManager;
|
|
4444
|
+
removeListener: (eventName: string | symbol, listener: (...args: any[]) => void) => _whereby_com_media.ReconnectManager;
|
|
4445
|
+
off: (eventName: string | symbol, listener: (...args: any[]) => void) => _whereby_com_media.ReconnectManager;
|
|
4446
|
+
removeAllListeners: (event?: string | symbol | undefined) => _whereby_com_media.ReconnectManager;
|
|
4447
|
+
setMaxListeners: (n: number) => _whereby_com_media.ReconnectManager;
|
|
4448
|
+
getMaxListeners: () => number;
|
|
4449
|
+
listeners: (eventName: string | symbol) => Function[];
|
|
4450
|
+
rawListeners: (eventName: string | symbol) => Function[];
|
|
4451
|
+
emit: (eventName: string | symbol, ...args: any[]) => boolean;
|
|
4452
|
+
listenerCount: (eventName: string | symbol, listener?: Function | undefined) => number;
|
|
4453
|
+
prependListener: (eventName: string | symbol, listener: (...args: any[]) => void) => _whereby_com_media.ReconnectManager;
|
|
4454
|
+
prependOnceListener: (eventName: string | symbol, listener: (...args: any[]) => void) => _whereby_com_media.ReconnectManager;
|
|
4455
|
+
eventNames: () => (string | symbol)[];
|
|
4456
|
+
} | null | undefined;
|
|
4457
|
+
noopKeepaliveInterval: any;
|
|
4458
|
+
_wasConnectedUsingWebsocket?: boolean | undefined;
|
|
4459
|
+
setRtcManager: (rtcManager?: _whereby_com_media.RtcManager | undefined) => void;
|
|
3891
4460
|
connect: () => void;
|
|
3892
4461
|
disconnect: () => void;
|
|
3893
|
-
|
|
3894
|
-
emit:
|
|
3895
|
-
|
|
3896
|
-
|
|
4462
|
+
disconnectOnConnect: () => void;
|
|
4463
|
+
emit: (eventName: string, ...args: any[]) => void;
|
|
4464
|
+
emitIfConnected: (eventName: string, data: any) => void;
|
|
4465
|
+
getTransport: () => any;
|
|
4466
|
+
getManager: () => any;
|
|
4467
|
+
isConnecting: () => any;
|
|
4468
|
+
isConnected: () => any;
|
|
4469
|
+
on: (eventName: string, handler: Function) => () => void;
|
|
4470
|
+
once: (eventName: string, handler: Function) => void;
|
|
4471
|
+
off: (eventName: string, handler: Function) => void;
|
|
4472
|
+
_interceptEvent: (eventName: string, handler: any) => () => void;
|
|
4473
|
+
getGlitchFreeMetrics: () => {
|
|
4474
|
+
roomJoinedLate: number;
|
|
4475
|
+
pendingClientCanceled: number;
|
|
4476
|
+
evaluationFailed: number;
|
|
4477
|
+
roomJoined: number;
|
|
4478
|
+
} | undefined;
|
|
3897
4479
|
} | null;
|
|
3898
4480
|
}) => {
|
|
3899
4481
|
status: "reconnect";
|
|
3900
4482
|
deviceIdentified: boolean;
|
|
3901
4483
|
isIdentifyingDevice: boolean;
|
|
3902
4484
|
socket: {
|
|
4485
|
+
_socket: any;
|
|
4486
|
+
_reconnectManager?: {
|
|
4487
|
+
_socket: any;
|
|
4488
|
+
_clients: any;
|
|
4489
|
+
_signalDisconnectTime?: number | undefined;
|
|
4490
|
+
rtcManager?: {
|
|
4491
|
+
acceptNewStream: ({ activeBreakout, clientId, shouldAddLocalVideo, streamId, }: {
|
|
4492
|
+
activeBreakout: boolean;
|
|
4493
|
+
clientId: string;
|
|
4494
|
+
shouldAddLocalVideo: boolean;
|
|
4495
|
+
streamId: string;
|
|
4496
|
+
}) => void;
|
|
4497
|
+
addNewStream: (streamId: string, stream: MediaStream, isAudioEnabled: boolean, isVideoEnabled: boolean) => void;
|
|
4498
|
+
disconnect: (streamId: string, activeBreakout: boolean | null, eventClaim?: string | undefined) => void;
|
|
4499
|
+
disconnectAll: () => void;
|
|
4500
|
+
replaceTrack: (oldTrack: MediaStreamTrack, newTrack: MediaStreamTrack) => void;
|
|
4501
|
+
removeStream: (streamId: string, _stream: MediaStream, requestedByClientId: string | null) => void;
|
|
4502
|
+
shouldAcceptStreamsFromBothSides?: (() => boolean) | undefined;
|
|
4503
|
+
updateStreamResolution: (streamId: string, ignored: null, resolution: {
|
|
4504
|
+
width: number;
|
|
4505
|
+
height: number;
|
|
4506
|
+
}) => void;
|
|
4507
|
+
sendStatsCustomEvent: (eventName: string, data: unknown) => void;
|
|
4508
|
+
isInitializedWith: ({ selfId, roomName, isSfu }: {
|
|
4509
|
+
selfId: string;
|
|
4510
|
+
roomName: string;
|
|
4511
|
+
isSfu: boolean;
|
|
4512
|
+
}) => boolean;
|
|
4513
|
+
setEventClaim?: ((eventClaim: string) => void) | undefined;
|
|
4514
|
+
hasClient: (clientId: string) => boolean;
|
|
4515
|
+
} | undefined;
|
|
4516
|
+
metrics: {
|
|
4517
|
+
roomJoinedLate: number;
|
|
4518
|
+
pendingClientCanceled: number;
|
|
4519
|
+
evaluationFailed: number;
|
|
4520
|
+
roomJoined: number;
|
|
4521
|
+
};
|
|
4522
|
+
_onRoomJoined: (payload: any) => Promise<void>;
|
|
4523
|
+
_onClientLeft: (payload: any) => void;
|
|
4524
|
+
_onPendingClientLeft: (payload: any) => void;
|
|
4525
|
+
_onNewClient: (payload: any) => void;
|
|
4526
|
+
_abortIfNotActive: (payload: any) => Promise<void>;
|
|
4527
|
+
_checkIsActive: (clientId: string) => Promise<boolean>;
|
|
4528
|
+
_isClientMediaActive: (stats: any, clientId: string) => boolean;
|
|
4529
|
+
_onAudioEnabled: (payload: any) => void;
|
|
4530
|
+
_onVideoEnabled: (payload: any) => void;
|
|
4531
|
+
_onScreenshareChanged: (payload: any, action: boolean) => void;
|
|
4532
|
+
_hasClientStateChanged: ({ clientId, webcam, mic, screenShare, }: {
|
|
4533
|
+
clientId: string;
|
|
4534
|
+
webcam: boolean;
|
|
4535
|
+
mic: boolean;
|
|
4536
|
+
screenShare: boolean;
|
|
4537
|
+
}) => boolean;
|
|
4538
|
+
_addClientToState: (newClient: any) => void;
|
|
4539
|
+
_wasClientSendingMedia: (clientId: string) => any;
|
|
4540
|
+
_getPendingClientsByDeviceId: (deviceId: string) => unknown[];
|
|
4541
|
+
_resetClientState: (payload: any) => void;
|
|
4542
|
+
[EventEmitter.captureRejectionSymbol]?: ((error: Error, event: string, ...args: any[]) => void) | undefined;
|
|
4543
|
+
addListener: (eventName: string | symbol, listener: (...args: any[]) => void) => _whereby_com_media.ReconnectManager;
|
|
4544
|
+
on: (eventName: string | symbol, listener: (...args: any[]) => void) => _whereby_com_media.ReconnectManager;
|
|
4545
|
+
once: (eventName: string | symbol, listener: (...args: any[]) => void) => _whereby_com_media.ReconnectManager;
|
|
4546
|
+
removeListener: (eventName: string | symbol, listener: (...args: any[]) => void) => _whereby_com_media.ReconnectManager;
|
|
4547
|
+
off: (eventName: string | symbol, listener: (...args: any[]) => void) => _whereby_com_media.ReconnectManager;
|
|
4548
|
+
removeAllListeners: (event?: string | symbol | undefined) => _whereby_com_media.ReconnectManager;
|
|
4549
|
+
setMaxListeners: (n: number) => _whereby_com_media.ReconnectManager;
|
|
4550
|
+
getMaxListeners: () => number;
|
|
4551
|
+
listeners: (eventName: string | symbol) => Function[];
|
|
4552
|
+
rawListeners: (eventName: string | symbol) => Function[];
|
|
4553
|
+
emit: (eventName: string | symbol, ...args: any[]) => boolean;
|
|
4554
|
+
listenerCount: (eventName: string | symbol, listener?: Function | undefined) => number;
|
|
4555
|
+
prependListener: (eventName: string | symbol, listener: (...args: any[]) => void) => _whereby_com_media.ReconnectManager;
|
|
4556
|
+
prependOnceListener: (eventName: string | symbol, listener: (...args: any[]) => void) => _whereby_com_media.ReconnectManager;
|
|
4557
|
+
eventNames: () => (string | symbol)[];
|
|
4558
|
+
} | null | undefined;
|
|
4559
|
+
noopKeepaliveInterval: any;
|
|
4560
|
+
_wasConnectedUsingWebsocket?: boolean | undefined;
|
|
4561
|
+
setRtcManager: (rtcManager?: _whereby_com_media.RtcManager | undefined) => void;
|
|
3903
4562
|
connect: () => void;
|
|
3904
4563
|
disconnect: () => void;
|
|
3905
|
-
|
|
3906
|
-
emit:
|
|
3907
|
-
|
|
3908
|
-
|
|
4564
|
+
disconnectOnConnect: () => void;
|
|
4565
|
+
emit: (eventName: string, ...args: any[]) => void;
|
|
4566
|
+
emitIfConnected: (eventName: string, data: any) => void;
|
|
4567
|
+
getTransport: () => any;
|
|
4568
|
+
getManager: () => any;
|
|
4569
|
+
isConnecting: () => any;
|
|
4570
|
+
isConnected: () => any;
|
|
4571
|
+
on: (eventName: string, handler: Function) => () => void;
|
|
4572
|
+
once: (eventName: string, handler: Function) => void;
|
|
4573
|
+
off: (eventName: string, handler: Function) => void;
|
|
4574
|
+
_interceptEvent: (eventName: string, handler: any) => () => void;
|
|
4575
|
+
getGlitchFreeMetrics: () => {
|
|
4576
|
+
roomJoinedLate: number;
|
|
4577
|
+
pendingClientCanceled: number;
|
|
4578
|
+
evaluationFailed: number;
|
|
4579
|
+
roomJoined: number;
|
|
4580
|
+
} | undefined;
|
|
3909
4581
|
} | null;
|
|
3910
4582
|
};
|
|
3911
4583
|
deviceIdentifying: (state: {
|
|
@@ -3913,24 +4585,204 @@ declare const signalConnectionSlice: _reduxjs_toolkit.Slice<SignalConnectionStat
|
|
|
3913
4585
|
isIdentifyingDevice: boolean;
|
|
3914
4586
|
status: "connected" | "connecting" | "disconnected" | "reconnect" | "";
|
|
3915
4587
|
socket: {
|
|
4588
|
+
_socket: any;
|
|
4589
|
+
_reconnectManager?: {
|
|
4590
|
+
_socket: any;
|
|
4591
|
+
_clients: any;
|
|
4592
|
+
_signalDisconnectTime?: number | undefined;
|
|
4593
|
+
rtcManager?: {
|
|
4594
|
+
acceptNewStream: ({ activeBreakout, clientId, shouldAddLocalVideo, streamId, }: {
|
|
4595
|
+
activeBreakout: boolean;
|
|
4596
|
+
clientId: string;
|
|
4597
|
+
shouldAddLocalVideo: boolean;
|
|
4598
|
+
streamId: string;
|
|
4599
|
+
}) => void;
|
|
4600
|
+
addNewStream: (streamId: string, stream: MediaStream, isAudioEnabled: boolean, isVideoEnabled: boolean) => void;
|
|
4601
|
+
disconnect: (streamId: string, activeBreakout: boolean | null, eventClaim?: string | undefined) => void;
|
|
4602
|
+
disconnectAll: () => void;
|
|
4603
|
+
replaceTrack: (oldTrack: MediaStreamTrack, newTrack: MediaStreamTrack) => void;
|
|
4604
|
+
removeStream: (streamId: string, _stream: MediaStream, requestedByClientId: string | null) => void;
|
|
4605
|
+
shouldAcceptStreamsFromBothSides?: (() => boolean) | undefined;
|
|
4606
|
+
updateStreamResolution: (streamId: string, ignored: null, resolution: {
|
|
4607
|
+
width: number;
|
|
4608
|
+
height: number;
|
|
4609
|
+
}) => void;
|
|
4610
|
+
sendStatsCustomEvent: (eventName: string, data: unknown) => void;
|
|
4611
|
+
isInitializedWith: ({ selfId, roomName, isSfu }: {
|
|
4612
|
+
selfId: string;
|
|
4613
|
+
roomName: string;
|
|
4614
|
+
isSfu: boolean;
|
|
4615
|
+
}) => boolean;
|
|
4616
|
+
setEventClaim?: ((eventClaim: string) => void) | undefined;
|
|
4617
|
+
hasClient: (clientId: string) => boolean;
|
|
4618
|
+
} | undefined;
|
|
4619
|
+
metrics: {
|
|
4620
|
+
roomJoinedLate: number;
|
|
4621
|
+
pendingClientCanceled: number;
|
|
4622
|
+
evaluationFailed: number;
|
|
4623
|
+
roomJoined: number;
|
|
4624
|
+
};
|
|
4625
|
+
_onRoomJoined: (payload: any) => Promise<void>;
|
|
4626
|
+
_onClientLeft: (payload: any) => void;
|
|
4627
|
+
_onPendingClientLeft: (payload: any) => void;
|
|
4628
|
+
_onNewClient: (payload: any) => void;
|
|
4629
|
+
_abortIfNotActive: (payload: any) => Promise<void>;
|
|
4630
|
+
_checkIsActive: (clientId: string) => Promise<boolean>;
|
|
4631
|
+
_isClientMediaActive: (stats: any, clientId: string) => boolean;
|
|
4632
|
+
_onAudioEnabled: (payload: any) => void;
|
|
4633
|
+
_onVideoEnabled: (payload: any) => void;
|
|
4634
|
+
_onScreenshareChanged: (payload: any, action: boolean) => void;
|
|
4635
|
+
_hasClientStateChanged: ({ clientId, webcam, mic, screenShare, }: {
|
|
4636
|
+
clientId: string;
|
|
4637
|
+
webcam: boolean;
|
|
4638
|
+
mic: boolean;
|
|
4639
|
+
screenShare: boolean;
|
|
4640
|
+
}) => boolean;
|
|
4641
|
+
_addClientToState: (newClient: any) => void;
|
|
4642
|
+
_wasClientSendingMedia: (clientId: string) => any;
|
|
4643
|
+
_getPendingClientsByDeviceId: (deviceId: string) => unknown[];
|
|
4644
|
+
_resetClientState: (payload: any) => void;
|
|
4645
|
+
[EventEmitter.captureRejectionSymbol]?: ((error: Error, event: string, ...args: any[]) => void) | undefined;
|
|
4646
|
+
addListener: (eventName: string | symbol, listener: (...args: any[]) => void) => _whereby_com_media.ReconnectManager;
|
|
4647
|
+
on: (eventName: string | symbol, listener: (...args: any[]) => void) => _whereby_com_media.ReconnectManager;
|
|
4648
|
+
once: (eventName: string | symbol, listener: (...args: any[]) => void) => _whereby_com_media.ReconnectManager;
|
|
4649
|
+
removeListener: (eventName: string | symbol, listener: (...args: any[]) => void) => _whereby_com_media.ReconnectManager;
|
|
4650
|
+
off: (eventName: string | symbol, listener: (...args: any[]) => void) => _whereby_com_media.ReconnectManager;
|
|
4651
|
+
removeAllListeners: (event?: string | symbol | undefined) => _whereby_com_media.ReconnectManager;
|
|
4652
|
+
setMaxListeners: (n: number) => _whereby_com_media.ReconnectManager;
|
|
4653
|
+
getMaxListeners: () => number;
|
|
4654
|
+
listeners: (eventName: string | symbol) => Function[];
|
|
4655
|
+
rawListeners: (eventName: string | symbol) => Function[];
|
|
4656
|
+
emit: (eventName: string | symbol, ...args: any[]) => boolean;
|
|
4657
|
+
listenerCount: (eventName: string | symbol, listener?: Function | undefined) => number;
|
|
4658
|
+
prependListener: (eventName: string | symbol, listener: (...args: any[]) => void) => _whereby_com_media.ReconnectManager;
|
|
4659
|
+
prependOnceListener: (eventName: string | symbol, listener: (...args: any[]) => void) => _whereby_com_media.ReconnectManager;
|
|
4660
|
+
eventNames: () => (string | symbol)[];
|
|
4661
|
+
} | null | undefined;
|
|
4662
|
+
noopKeepaliveInterval: any;
|
|
4663
|
+
_wasConnectedUsingWebsocket?: boolean | undefined;
|
|
4664
|
+
setRtcManager: (rtcManager?: _whereby_com_media.RtcManager | undefined) => void;
|
|
3916
4665
|
connect: () => void;
|
|
3917
4666
|
disconnect: () => void;
|
|
3918
|
-
|
|
3919
|
-
emit:
|
|
3920
|
-
|
|
3921
|
-
|
|
4667
|
+
disconnectOnConnect: () => void;
|
|
4668
|
+
emit: (eventName: string, ...args: any[]) => void;
|
|
4669
|
+
emitIfConnected: (eventName: string, data: any) => void;
|
|
4670
|
+
getTransport: () => any;
|
|
4671
|
+
getManager: () => any;
|
|
4672
|
+
isConnecting: () => any;
|
|
4673
|
+
isConnected: () => any;
|
|
4674
|
+
on: (eventName: string, handler: Function) => () => void;
|
|
4675
|
+
once: (eventName: string, handler: Function) => void;
|
|
4676
|
+
off: (eventName: string, handler: Function) => void;
|
|
4677
|
+
_interceptEvent: (eventName: string, handler: any) => () => void;
|
|
4678
|
+
getGlitchFreeMetrics: () => {
|
|
4679
|
+
roomJoinedLate: number;
|
|
4680
|
+
pendingClientCanceled: number;
|
|
4681
|
+
evaluationFailed: number;
|
|
4682
|
+
roomJoined: number;
|
|
4683
|
+
} | undefined;
|
|
3922
4684
|
} | null;
|
|
3923
4685
|
}) => {
|
|
3924
4686
|
isIdentifyingDevice: true;
|
|
3925
4687
|
deviceIdentified: boolean;
|
|
3926
4688
|
status: "connected" | "connecting" | "disconnected" | "reconnect" | "";
|
|
3927
4689
|
socket: {
|
|
4690
|
+
_socket: any;
|
|
4691
|
+
_reconnectManager?: {
|
|
4692
|
+
_socket: any;
|
|
4693
|
+
_clients: any;
|
|
4694
|
+
_signalDisconnectTime?: number | undefined;
|
|
4695
|
+
rtcManager?: {
|
|
4696
|
+
acceptNewStream: ({ activeBreakout, clientId, shouldAddLocalVideo, streamId, }: {
|
|
4697
|
+
activeBreakout: boolean;
|
|
4698
|
+
clientId: string;
|
|
4699
|
+
shouldAddLocalVideo: boolean;
|
|
4700
|
+
streamId: string;
|
|
4701
|
+
}) => void;
|
|
4702
|
+
addNewStream: (streamId: string, stream: MediaStream, isAudioEnabled: boolean, isVideoEnabled: boolean) => void;
|
|
4703
|
+
disconnect: (streamId: string, activeBreakout: boolean | null, eventClaim?: string | undefined) => void;
|
|
4704
|
+
disconnectAll: () => void;
|
|
4705
|
+
replaceTrack: (oldTrack: MediaStreamTrack, newTrack: MediaStreamTrack) => void;
|
|
4706
|
+
removeStream: (streamId: string, _stream: MediaStream, requestedByClientId: string | null) => void;
|
|
4707
|
+
shouldAcceptStreamsFromBothSides?: (() => boolean) | undefined;
|
|
4708
|
+
updateStreamResolution: (streamId: string, ignored: null, resolution: {
|
|
4709
|
+
width: number;
|
|
4710
|
+
height: number;
|
|
4711
|
+
}) => void;
|
|
4712
|
+
sendStatsCustomEvent: (eventName: string, data: unknown) => void;
|
|
4713
|
+
isInitializedWith: ({ selfId, roomName, isSfu }: {
|
|
4714
|
+
selfId: string;
|
|
4715
|
+
roomName: string;
|
|
4716
|
+
isSfu: boolean;
|
|
4717
|
+
}) => boolean;
|
|
4718
|
+
setEventClaim?: ((eventClaim: string) => void) | undefined;
|
|
4719
|
+
hasClient: (clientId: string) => boolean;
|
|
4720
|
+
} | undefined;
|
|
4721
|
+
metrics: {
|
|
4722
|
+
roomJoinedLate: number;
|
|
4723
|
+
pendingClientCanceled: number;
|
|
4724
|
+
evaluationFailed: number;
|
|
4725
|
+
roomJoined: number;
|
|
4726
|
+
};
|
|
4727
|
+
_onRoomJoined: (payload: any) => Promise<void>;
|
|
4728
|
+
_onClientLeft: (payload: any) => void;
|
|
4729
|
+
_onPendingClientLeft: (payload: any) => void;
|
|
4730
|
+
_onNewClient: (payload: any) => void;
|
|
4731
|
+
_abortIfNotActive: (payload: any) => Promise<void>;
|
|
4732
|
+
_checkIsActive: (clientId: string) => Promise<boolean>;
|
|
4733
|
+
_isClientMediaActive: (stats: any, clientId: string) => boolean;
|
|
4734
|
+
_onAudioEnabled: (payload: any) => void;
|
|
4735
|
+
_onVideoEnabled: (payload: any) => void;
|
|
4736
|
+
_onScreenshareChanged: (payload: any, action: boolean) => void;
|
|
4737
|
+
_hasClientStateChanged: ({ clientId, webcam, mic, screenShare, }: {
|
|
4738
|
+
clientId: string;
|
|
4739
|
+
webcam: boolean;
|
|
4740
|
+
mic: boolean;
|
|
4741
|
+
screenShare: boolean;
|
|
4742
|
+
}) => boolean;
|
|
4743
|
+
_addClientToState: (newClient: any) => void;
|
|
4744
|
+
_wasClientSendingMedia: (clientId: string) => any;
|
|
4745
|
+
_getPendingClientsByDeviceId: (deviceId: string) => unknown[];
|
|
4746
|
+
_resetClientState: (payload: any) => void;
|
|
4747
|
+
[EventEmitter.captureRejectionSymbol]?: ((error: Error, event: string, ...args: any[]) => void) | undefined;
|
|
4748
|
+
addListener: (eventName: string | symbol, listener: (...args: any[]) => void) => _whereby_com_media.ReconnectManager;
|
|
4749
|
+
on: (eventName: string | symbol, listener: (...args: any[]) => void) => _whereby_com_media.ReconnectManager;
|
|
4750
|
+
once: (eventName: string | symbol, listener: (...args: any[]) => void) => _whereby_com_media.ReconnectManager;
|
|
4751
|
+
removeListener: (eventName: string | symbol, listener: (...args: any[]) => void) => _whereby_com_media.ReconnectManager;
|
|
4752
|
+
off: (eventName: string | symbol, listener: (...args: any[]) => void) => _whereby_com_media.ReconnectManager;
|
|
4753
|
+
removeAllListeners: (event?: string | symbol | undefined) => _whereby_com_media.ReconnectManager;
|
|
4754
|
+
setMaxListeners: (n: number) => _whereby_com_media.ReconnectManager;
|
|
4755
|
+
getMaxListeners: () => number;
|
|
4756
|
+
listeners: (eventName: string | symbol) => Function[];
|
|
4757
|
+
rawListeners: (eventName: string | symbol) => Function[];
|
|
4758
|
+
emit: (eventName: string | symbol, ...args: any[]) => boolean;
|
|
4759
|
+
listenerCount: (eventName: string | symbol, listener?: Function | undefined) => number;
|
|
4760
|
+
prependListener: (eventName: string | symbol, listener: (...args: any[]) => void) => _whereby_com_media.ReconnectManager;
|
|
4761
|
+
prependOnceListener: (eventName: string | symbol, listener: (...args: any[]) => void) => _whereby_com_media.ReconnectManager;
|
|
4762
|
+
eventNames: () => (string | symbol)[];
|
|
4763
|
+
} | null | undefined;
|
|
4764
|
+
noopKeepaliveInterval: any;
|
|
4765
|
+
_wasConnectedUsingWebsocket?: boolean | undefined;
|
|
4766
|
+
setRtcManager: (rtcManager?: _whereby_com_media.RtcManager | undefined) => void;
|
|
3928
4767
|
connect: () => void;
|
|
3929
4768
|
disconnect: () => void;
|
|
3930
|
-
|
|
3931
|
-
emit:
|
|
3932
|
-
|
|
3933
|
-
|
|
4769
|
+
disconnectOnConnect: () => void;
|
|
4770
|
+
emit: (eventName: string, ...args: any[]) => void;
|
|
4771
|
+
emitIfConnected: (eventName: string, data: any) => void;
|
|
4772
|
+
getTransport: () => any;
|
|
4773
|
+
getManager: () => any;
|
|
4774
|
+
isConnecting: () => any;
|
|
4775
|
+
isConnected: () => any;
|
|
4776
|
+
on: (eventName: string, handler: Function) => () => void;
|
|
4777
|
+
once: (eventName: string, handler: Function) => void;
|
|
4778
|
+
off: (eventName: string, handler: Function) => void;
|
|
4779
|
+
_interceptEvent: (eventName: string, handler: any) => () => void;
|
|
4780
|
+
getGlitchFreeMetrics: () => {
|
|
4781
|
+
roomJoinedLate: number;
|
|
4782
|
+
pendingClientCanceled: number;
|
|
4783
|
+
evaluationFailed: number;
|
|
4784
|
+
roomJoined: number;
|
|
4785
|
+
} | undefined;
|
|
3934
4786
|
} | null;
|
|
3935
4787
|
};
|
|
3936
4788
|
deviceIdentified: (state: {
|
|
@@ -3938,35 +4790,212 @@ declare const signalConnectionSlice: _reduxjs_toolkit.Slice<SignalConnectionStat
|
|
|
3938
4790
|
isIdentifyingDevice: boolean;
|
|
3939
4791
|
status: "connected" | "connecting" | "disconnected" | "reconnect" | "";
|
|
3940
4792
|
socket: {
|
|
4793
|
+
_socket: any;
|
|
4794
|
+
_reconnectManager?: {
|
|
4795
|
+
_socket: any;
|
|
4796
|
+
_clients: any;
|
|
4797
|
+
_signalDisconnectTime?: number | undefined;
|
|
4798
|
+
rtcManager?: {
|
|
4799
|
+
acceptNewStream: ({ activeBreakout, clientId, shouldAddLocalVideo, streamId, }: {
|
|
4800
|
+
activeBreakout: boolean;
|
|
4801
|
+
clientId: string;
|
|
4802
|
+
shouldAddLocalVideo: boolean;
|
|
4803
|
+
streamId: string;
|
|
4804
|
+
}) => void;
|
|
4805
|
+
addNewStream: (streamId: string, stream: MediaStream, isAudioEnabled: boolean, isVideoEnabled: boolean) => void;
|
|
4806
|
+
disconnect: (streamId: string, activeBreakout: boolean | null, eventClaim?: string | undefined) => void;
|
|
4807
|
+
disconnectAll: () => void;
|
|
4808
|
+
replaceTrack: (oldTrack: MediaStreamTrack, newTrack: MediaStreamTrack) => void;
|
|
4809
|
+
removeStream: (streamId: string, _stream: MediaStream, requestedByClientId: string | null) => void;
|
|
4810
|
+
shouldAcceptStreamsFromBothSides?: (() => boolean) | undefined;
|
|
4811
|
+
updateStreamResolution: (streamId: string, ignored: null, resolution: {
|
|
4812
|
+
width: number;
|
|
4813
|
+
height: number;
|
|
4814
|
+
}) => void;
|
|
4815
|
+
sendStatsCustomEvent: (eventName: string, data: unknown) => void;
|
|
4816
|
+
isInitializedWith: ({ selfId, roomName, isSfu }: {
|
|
4817
|
+
selfId: string;
|
|
4818
|
+
roomName: string;
|
|
4819
|
+
isSfu: boolean;
|
|
4820
|
+
}) => boolean;
|
|
4821
|
+
setEventClaim?: ((eventClaim: string) => void) | undefined;
|
|
4822
|
+
hasClient: (clientId: string) => boolean;
|
|
4823
|
+
} | undefined;
|
|
4824
|
+
metrics: {
|
|
4825
|
+
roomJoinedLate: number;
|
|
4826
|
+
pendingClientCanceled: number;
|
|
4827
|
+
evaluationFailed: number;
|
|
4828
|
+
roomJoined: number;
|
|
4829
|
+
};
|
|
4830
|
+
_onRoomJoined: (payload: any) => Promise<void>;
|
|
4831
|
+
_onClientLeft: (payload: any) => void;
|
|
4832
|
+
_onPendingClientLeft: (payload: any) => void;
|
|
4833
|
+
_onNewClient: (payload: any) => void;
|
|
4834
|
+
_abortIfNotActive: (payload: any) => Promise<void>;
|
|
4835
|
+
_checkIsActive: (clientId: string) => Promise<boolean>;
|
|
4836
|
+
_isClientMediaActive: (stats: any, clientId: string) => boolean;
|
|
4837
|
+
_onAudioEnabled: (payload: any) => void;
|
|
4838
|
+
_onVideoEnabled: (payload: any) => void;
|
|
4839
|
+
_onScreenshareChanged: (payload: any, action: boolean) => void;
|
|
4840
|
+
_hasClientStateChanged: ({ clientId, webcam, mic, screenShare, }: {
|
|
4841
|
+
clientId: string;
|
|
4842
|
+
webcam: boolean;
|
|
4843
|
+
mic: boolean;
|
|
4844
|
+
screenShare: boolean;
|
|
4845
|
+
}) => boolean;
|
|
4846
|
+
_addClientToState: (newClient: any) => void;
|
|
4847
|
+
_wasClientSendingMedia: (clientId: string) => any;
|
|
4848
|
+
_getPendingClientsByDeviceId: (deviceId: string) => unknown[];
|
|
4849
|
+
_resetClientState: (payload: any) => void;
|
|
4850
|
+
[EventEmitter.captureRejectionSymbol]?: ((error: Error, event: string, ...args: any[]) => void) | undefined;
|
|
4851
|
+
addListener: (eventName: string | symbol, listener: (...args: any[]) => void) => _whereby_com_media.ReconnectManager;
|
|
4852
|
+
on: (eventName: string | symbol, listener: (...args: any[]) => void) => _whereby_com_media.ReconnectManager;
|
|
4853
|
+
once: (eventName: string | symbol, listener: (...args: any[]) => void) => _whereby_com_media.ReconnectManager;
|
|
4854
|
+
removeListener: (eventName: string | symbol, listener: (...args: any[]) => void) => _whereby_com_media.ReconnectManager;
|
|
4855
|
+
off: (eventName: string | symbol, listener: (...args: any[]) => void) => _whereby_com_media.ReconnectManager;
|
|
4856
|
+
removeAllListeners: (event?: string | symbol | undefined) => _whereby_com_media.ReconnectManager;
|
|
4857
|
+
setMaxListeners: (n: number) => _whereby_com_media.ReconnectManager;
|
|
4858
|
+
getMaxListeners: () => number;
|
|
4859
|
+
listeners: (eventName: string | symbol) => Function[];
|
|
4860
|
+
rawListeners: (eventName: string | symbol) => Function[];
|
|
4861
|
+
emit: (eventName: string | symbol, ...args: any[]) => boolean;
|
|
4862
|
+
listenerCount: (eventName: string | symbol, listener?: Function | undefined) => number;
|
|
4863
|
+
prependListener: (eventName: string | symbol, listener: (...args: any[]) => void) => _whereby_com_media.ReconnectManager;
|
|
4864
|
+
prependOnceListener: (eventName: string | symbol, listener: (...args: any[]) => void) => _whereby_com_media.ReconnectManager;
|
|
4865
|
+
eventNames: () => (string | symbol)[];
|
|
4866
|
+
} | null | undefined;
|
|
4867
|
+
noopKeepaliveInterval: any;
|
|
4868
|
+
_wasConnectedUsingWebsocket?: boolean | undefined;
|
|
4869
|
+
setRtcManager: (rtcManager?: _whereby_com_media.RtcManager | undefined) => void;
|
|
3941
4870
|
connect: () => void;
|
|
3942
4871
|
disconnect: () => void;
|
|
3943
|
-
|
|
3944
|
-
emit:
|
|
3945
|
-
|
|
3946
|
-
|
|
4872
|
+
disconnectOnConnect: () => void;
|
|
4873
|
+
emit: (eventName: string, ...args: any[]) => void;
|
|
4874
|
+
emitIfConnected: (eventName: string, data: any) => void;
|
|
4875
|
+
getTransport: () => any;
|
|
4876
|
+
getManager: () => any;
|
|
4877
|
+
isConnecting: () => any;
|
|
4878
|
+
isConnected: () => any;
|
|
4879
|
+
on: (eventName: string, handler: Function) => () => void;
|
|
4880
|
+
once: (eventName: string, handler: Function) => void;
|
|
4881
|
+
off: (eventName: string, handler: Function) => void;
|
|
4882
|
+
_interceptEvent: (eventName: string, handler: any) => () => void;
|
|
4883
|
+
getGlitchFreeMetrics: () => {
|
|
4884
|
+
roomJoinedLate: number;
|
|
4885
|
+
pendingClientCanceled: number;
|
|
4886
|
+
evaluationFailed: number;
|
|
4887
|
+
roomJoined: number;
|
|
4888
|
+
} | undefined;
|
|
3947
4889
|
} | null;
|
|
3948
4890
|
}) => {
|
|
3949
4891
|
deviceIdentified: true;
|
|
3950
4892
|
isIdentifyingDevice: false;
|
|
3951
4893
|
status: "connected" | "connecting" | "disconnected" | "reconnect" | "";
|
|
3952
4894
|
socket: {
|
|
4895
|
+
_socket: any;
|
|
4896
|
+
_reconnectManager?: {
|
|
4897
|
+
_socket: any;
|
|
4898
|
+
_clients: any;
|
|
4899
|
+
_signalDisconnectTime?: number | undefined;
|
|
4900
|
+
rtcManager?: {
|
|
4901
|
+
acceptNewStream: ({ activeBreakout, clientId, shouldAddLocalVideo, streamId, }: {
|
|
4902
|
+
activeBreakout: boolean;
|
|
4903
|
+
clientId: string;
|
|
4904
|
+
shouldAddLocalVideo: boolean;
|
|
4905
|
+
streamId: string;
|
|
4906
|
+
}) => void;
|
|
4907
|
+
addNewStream: (streamId: string, stream: MediaStream, isAudioEnabled: boolean, isVideoEnabled: boolean) => void;
|
|
4908
|
+
disconnect: (streamId: string, activeBreakout: boolean | null, eventClaim?: string | undefined) => void;
|
|
4909
|
+
disconnectAll: () => void;
|
|
4910
|
+
replaceTrack: (oldTrack: MediaStreamTrack, newTrack: MediaStreamTrack) => void;
|
|
4911
|
+
removeStream: (streamId: string, _stream: MediaStream, requestedByClientId: string | null) => void;
|
|
4912
|
+
shouldAcceptStreamsFromBothSides?: (() => boolean) | undefined;
|
|
4913
|
+
updateStreamResolution: (streamId: string, ignored: null, resolution: {
|
|
4914
|
+
width: number;
|
|
4915
|
+
height: number;
|
|
4916
|
+
}) => void;
|
|
4917
|
+
sendStatsCustomEvent: (eventName: string, data: unknown) => void;
|
|
4918
|
+
isInitializedWith: ({ selfId, roomName, isSfu }: {
|
|
4919
|
+
selfId: string;
|
|
4920
|
+
roomName: string;
|
|
4921
|
+
isSfu: boolean;
|
|
4922
|
+
}) => boolean;
|
|
4923
|
+
setEventClaim?: ((eventClaim: string) => void) | undefined;
|
|
4924
|
+
hasClient: (clientId: string) => boolean;
|
|
4925
|
+
} | undefined;
|
|
4926
|
+
metrics: {
|
|
4927
|
+
roomJoinedLate: number;
|
|
4928
|
+
pendingClientCanceled: number;
|
|
4929
|
+
evaluationFailed: number;
|
|
4930
|
+
roomJoined: number;
|
|
4931
|
+
};
|
|
4932
|
+
_onRoomJoined: (payload: any) => Promise<void>;
|
|
4933
|
+
_onClientLeft: (payload: any) => void;
|
|
4934
|
+
_onPendingClientLeft: (payload: any) => void;
|
|
4935
|
+
_onNewClient: (payload: any) => void;
|
|
4936
|
+
_abortIfNotActive: (payload: any) => Promise<void>;
|
|
4937
|
+
_checkIsActive: (clientId: string) => Promise<boolean>;
|
|
4938
|
+
_isClientMediaActive: (stats: any, clientId: string) => boolean;
|
|
4939
|
+
_onAudioEnabled: (payload: any) => void;
|
|
4940
|
+
_onVideoEnabled: (payload: any) => void;
|
|
4941
|
+
_onScreenshareChanged: (payload: any, action: boolean) => void;
|
|
4942
|
+
_hasClientStateChanged: ({ clientId, webcam, mic, screenShare, }: {
|
|
4943
|
+
clientId: string;
|
|
4944
|
+
webcam: boolean;
|
|
4945
|
+
mic: boolean;
|
|
4946
|
+
screenShare: boolean;
|
|
4947
|
+
}) => boolean;
|
|
4948
|
+
_addClientToState: (newClient: any) => void;
|
|
4949
|
+
_wasClientSendingMedia: (clientId: string) => any;
|
|
4950
|
+
_getPendingClientsByDeviceId: (deviceId: string) => unknown[];
|
|
4951
|
+
_resetClientState: (payload: any) => void;
|
|
4952
|
+
[EventEmitter.captureRejectionSymbol]?: ((error: Error, event: string, ...args: any[]) => void) | undefined;
|
|
4953
|
+
addListener: (eventName: string | symbol, listener: (...args: any[]) => void) => _whereby_com_media.ReconnectManager;
|
|
4954
|
+
on: (eventName: string | symbol, listener: (...args: any[]) => void) => _whereby_com_media.ReconnectManager;
|
|
4955
|
+
once: (eventName: string | symbol, listener: (...args: any[]) => void) => _whereby_com_media.ReconnectManager;
|
|
4956
|
+
removeListener: (eventName: string | symbol, listener: (...args: any[]) => void) => _whereby_com_media.ReconnectManager;
|
|
4957
|
+
off: (eventName: string | symbol, listener: (...args: any[]) => void) => _whereby_com_media.ReconnectManager;
|
|
4958
|
+
removeAllListeners: (event?: string | symbol | undefined) => _whereby_com_media.ReconnectManager;
|
|
4959
|
+
setMaxListeners: (n: number) => _whereby_com_media.ReconnectManager;
|
|
4960
|
+
getMaxListeners: () => number;
|
|
4961
|
+
listeners: (eventName: string | symbol) => Function[];
|
|
4962
|
+
rawListeners: (eventName: string | symbol) => Function[];
|
|
4963
|
+
emit: (eventName: string | symbol, ...args: any[]) => boolean;
|
|
4964
|
+
listenerCount: (eventName: string | symbol, listener?: Function | undefined) => number;
|
|
4965
|
+
prependListener: (eventName: string | symbol, listener: (...args: any[]) => void) => _whereby_com_media.ReconnectManager;
|
|
4966
|
+
prependOnceListener: (eventName: string | symbol, listener: (...args: any[]) => void) => _whereby_com_media.ReconnectManager;
|
|
4967
|
+
eventNames: () => (string | symbol)[];
|
|
4968
|
+
} | null | undefined;
|
|
4969
|
+
noopKeepaliveInterval: any;
|
|
4970
|
+
_wasConnectedUsingWebsocket?: boolean | undefined;
|
|
4971
|
+
setRtcManager: (rtcManager?: _whereby_com_media.RtcManager | undefined) => void;
|
|
3953
4972
|
connect: () => void;
|
|
3954
4973
|
disconnect: () => void;
|
|
3955
|
-
|
|
3956
|
-
emit:
|
|
3957
|
-
|
|
3958
|
-
|
|
4974
|
+
disconnectOnConnect: () => void;
|
|
4975
|
+
emit: (eventName: string, ...args: any[]) => void;
|
|
4976
|
+
emitIfConnected: (eventName: string, data: any) => void;
|
|
4977
|
+
getTransport: () => any;
|
|
4978
|
+
getManager: () => any;
|
|
4979
|
+
isConnecting: () => any;
|
|
4980
|
+
isConnected: () => any;
|
|
4981
|
+
on: (eventName: string, handler: Function) => () => void;
|
|
4982
|
+
once: (eventName: string, handler: Function) => void;
|
|
4983
|
+
off: (eventName: string, handler: Function) => void;
|
|
4984
|
+
_interceptEvent: (eventName: string, handler: any) => () => void;
|
|
4985
|
+
getGlitchFreeMetrics: () => {
|
|
4986
|
+
roomJoinedLate: number;
|
|
4987
|
+
pendingClientCanceled: number;
|
|
4988
|
+
evaluationFailed: number;
|
|
4989
|
+
roomJoined: number;
|
|
4990
|
+
} | undefined;
|
|
3959
4991
|
} | null;
|
|
3960
4992
|
};
|
|
3961
4993
|
}, "signalConnection", "signalConnection", _reduxjs_toolkit.SliceSelectors<SignalConnectionState>>;
|
|
3962
4994
|
declare const deviceIdentifying: _reduxjs_toolkit.ActionCreatorWithoutPayload<"signalConnection/deviceIdentifying">;
|
|
3963
4995
|
declare const deviceIdentified: _reduxjs_toolkit.ActionCreatorWithoutPayload<"signalConnection/deviceIdentified">;
|
|
3964
|
-
declare const socketConnected: _reduxjs_toolkit.ActionCreatorWithPayload<
|
|
4996
|
+
declare const socketConnected: _reduxjs_toolkit.ActionCreatorWithPayload<ServerSocket, "signalConnection/socketConnected">;
|
|
3965
4997
|
declare const socketConnecting: _reduxjs_toolkit.ActionCreatorWithoutPayload<"signalConnection/socketConnecting">;
|
|
3966
4998
|
declare const socketDisconnected: _reduxjs_toolkit.ActionCreatorWithoutPayload<"signalConnection/socketDisconnected">;
|
|
3967
|
-
/**
|
|
3968
|
-
* Action creators
|
|
3969
|
-
*/
|
|
3970
4999
|
declare const doSignalSocketConnect: (args: void) => AppThunk<void>;
|
|
3971
5000
|
declare const doSignalIdentifyDevice: (args: {
|
|
3972
5001
|
deviceCredentials: Credentials;
|
|
@@ -3974,14 +5003,11 @@ declare const doSignalIdentifyDevice: (args: {
|
|
|
3974
5003
|
declare const doSignalDisconnect: (args: void) => AppThunk<void>;
|
|
3975
5004
|
declare const doSignalReconnect: (args: void) => AppThunk<void>;
|
|
3976
5005
|
declare const socketReconnecting: _reduxjs_toolkit.ActionCreatorWithoutPayload<"signalConnection/socketReconnecting">;
|
|
3977
|
-
/**
|
|
3978
|
-
* Selectors
|
|
3979
|
-
*/
|
|
3980
5006
|
declare const selectSignalConnectionRaw: (state: RootState) => SignalConnectionState;
|
|
3981
5007
|
declare const selectSignalIsIdentifyingDevice: (state: RootState) => boolean;
|
|
3982
5008
|
declare const selectSignalConnectionDeviceIdentified: (state: RootState) => boolean;
|
|
3983
5009
|
declare const selectSignalStatus: (state: RootState) => "" | "connecting" | "connected" | "reconnect" | "disconnected";
|
|
3984
|
-
declare const selectSignalConnectionSocket: (state: RootState) =>
|
|
5010
|
+
declare const selectSignalConnectionSocket: (state: RootState) => ServerSocket | null;
|
|
3985
5011
|
declare const selectShouldConnectSignal: ((state: {
|
|
3986
5012
|
app: AppState;
|
|
3987
5013
|
chat: ChatState;
|
|
@@ -4255,23 +5281,6 @@ declare const addAppListener: TypedAddListener<{
|
|
|
4255
5281
|
type SelectorResults<Selectors extends Selector<RootState, unknown>[]> = {
|
|
4256
5282
|
[K in keyof Selectors]: Selectors[K] extends Selector<RootState, infer R> ? R : never;
|
|
4257
5283
|
};
|
|
4258
|
-
/**
|
|
4259
|
-
* Creates a reactor that will be called whenever the provided selectors change.
|
|
4260
|
-
* Every reactor needs to update a piece of state that it depends on, to avoid infinite loops.
|
|
4261
|
-
* example:
|
|
4262
|
-
* ```ts
|
|
4263
|
-
* createReactor(
|
|
4264
|
-
* [selectAppWantsToJoin, selectDeviceCredentialsRaw],
|
|
4265
|
-
* ({ dispatch }, wantsToJoin, deviceCredentialsRaw) => {
|
|
4266
|
-
* if (wantsToJoin && deviceCredentialsRaw.data) {
|
|
4267
|
-
* dispatch(doSignalIdentifyDevice({ deviceCredentials: deviceCredentialsRaw.data }));
|
|
4268
|
-
* }
|
|
4269
|
-
* });
|
|
4270
|
-
* ```
|
|
4271
|
-
* @param selectors. The selectors to be used to check if the state has changed.
|
|
4272
|
-
* @param callback. The callback to be called on every action. The first argument is the listenerApi, the second argument is the result of the selectors.
|
|
4273
|
-
* @returns The unsubscribe function.
|
|
4274
|
-
*/
|
|
4275
5284
|
declare const createReactor: <Selectors extends Selector<{
|
|
4276
5285
|
app: AppState;
|
|
4277
5286
|
chat: ChatState;
|