@livedigital/client 3.41.0-test-rejoins.3 → 3.41.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/constants/common.d.ts +1 -2
- package/dist/constants/common.ts +1 -3
- package/dist/engine/ChannelStateSynchronizer/ChannelStateSynchronizer.d.ts +1 -1
- package/dist/engine/EventsQueue.d.ts +2 -2
- package/dist/engine/handlers/ChannelEventHandler.d.ts +1 -1
- package/dist/index.es.js +2 -2
- package/dist/index.js +2 -2
- package/package.json +2 -2
- package/src/constants/common.ts +1 -3
- package/src/engine/ChannelStateSynchronizer/ChannelStateSynchronizer.ts +29 -36
- package/src/engine/EventsQueue.ts +36 -90
- package/src/engine/handlers/ChannelEventHandler.ts +11 -4
- package/src/engine/index.ts +18 -7
- package/src/engine/network/index.ts +20 -20
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { LogLevel } from '../types/common';
|
|
2
|
-
export declare const SIGNALING_API_VERSION =
|
|
2
|
+
export declare const SIGNALING_API_VERSION = 6;
|
|
3
3
|
export declare const LOG_LEVEL_ERROR: LogLevel;
|
|
4
4
|
export declare const LOG_LEVEL_WARN: LogLevel;
|
|
5
5
|
export declare const LOG_LEVEL_INFO: LogLevel;
|
|
@@ -56,4 +56,3 @@ export declare enum HttpStatusCode {
|
|
|
56
56
|
GatewayTimeout = 504
|
|
57
57
|
}
|
|
58
58
|
export declare const CHANNEL_MESSAGES_DATA_PRODUCER = "channel-messages-data-producer";
|
|
59
|
-
export declare const UI_BLOCKING_THRESHOLD_MS = 50;
|
package/dist/constants/common.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import type { LogLevel } from '../types/common';
|
|
4
4
|
|
|
5
|
-
export const SIGNALING_API_VERSION =
|
|
5
|
+
export const SIGNALING_API_VERSION = 6;
|
|
6
6
|
|
|
7
7
|
export const LOG_LEVEL_ERROR: LogLevel = 3;
|
|
8
8
|
export const LOG_LEVEL_WARN: LogLevel = 4;
|
|
@@ -85,5 +85,3 @@ export enum HttpStatusCode {
|
|
|
85
85
|
}
|
|
86
86
|
|
|
87
87
|
export const CHANNEL_MESSAGES_DATA_PRODUCER = 'channel-messages-data-producer';
|
|
88
|
-
|
|
89
|
-
export const UI_BLOCKING_THRESHOLD_MS = 50;
|
|
@@ -17,7 +17,7 @@ declare class ChannelStateSynchronizer {
|
|
|
17
17
|
private readonly peers;
|
|
18
18
|
readonly debouncedTriggerChannelStateEvent: (this: ChannelStateSynchronizer) => void;
|
|
19
19
|
constructor(network: Network, media: Media, myPeer: MyPeer, eventsQueue: EventsQueue, clientEventEmitter: EnhancedEventEmitter, peers: Peers, loggerFactory: (namespace: string) => Logger);
|
|
20
|
-
handleChannelStateEvent(channelState: ChannelState): void
|
|
20
|
+
handleChannelStateEvent(channelState: ChannelState): Promise<void>;
|
|
21
21
|
private watchNetworkState;
|
|
22
22
|
triggerChannelStateEvent(): Promise<void>;
|
|
23
23
|
loadChannelState(channelState: ChannelState): void;
|
|
@@ -5,8 +5,8 @@ import { MediaEvent } from '../proto/generated/channel_message/media_event';
|
|
|
5
5
|
export default class EventsQueue {
|
|
6
6
|
#private;
|
|
7
7
|
constructor(loggerFactory: (namespace: string) => Logger);
|
|
8
|
-
setMediaEventHandler(handler: (event: MediaEvent) => void): void;
|
|
9
|
-
setChannelEventHandler(handler: (event: ChannelEvent) => void): void;
|
|
8
|
+
setMediaEventHandler(handler: (event: MediaEvent) => void | Promise<void>): void;
|
|
9
|
+
setChannelEventHandler(handler: (event: ChannelEvent) => void | Promise<void>): void;
|
|
10
10
|
subscribe(dataChannel: DataConsumer): void;
|
|
11
11
|
private push;
|
|
12
12
|
private process;
|
|
@@ -11,7 +11,7 @@ declare class ChannelEventHandler {
|
|
|
11
11
|
private readonly channelStateSyncEventHandler;
|
|
12
12
|
private readonly channelStateSynchronizer;
|
|
13
13
|
constructor(peers: Peers, clientEventEmitter: EnhancedEventEmitter, loggerFactory: (namespace: string) => Logger, channelStateSyncEventHandler: ChannelStateSyncEventHandler, channelStateSynchronizer: ChannelStateSynchronizer);
|
|
14
|
-
handleChannelEvent(event: ChannelEvent): void
|
|
14
|
+
handleChannelEvent(event: ChannelEvent): Promise<void>;
|
|
15
15
|
private handleChannelManagementEvent;
|
|
16
16
|
private handlePeerJoined;
|
|
17
17
|
private handlePeerLeft;
|