livekit-client 1.9.2 → 1.9.3
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/livekit-client.esm.mjs +3251 -3013
- package/dist/livekit-client.esm.mjs.map +1 -1
- package/dist/livekit-client.umd.js +1 -1
- package/dist/livekit-client.umd.js.map +1 -1
- package/dist/src/api/SignalClient.d.ts +98 -98
- package/dist/src/api/SignalClient.d.ts.map +1 -1
- package/dist/src/connectionHelper/ConnectionCheck.d.ts +25 -24
- package/dist/src/connectionHelper/ConnectionCheck.d.ts.map +1 -1
- package/dist/src/connectionHelper/checks/Checker.d.ts +58 -58
- package/dist/src/connectionHelper/checks/publishAudio.d.ts +5 -5
- package/dist/src/connectionHelper/checks/publishVideo.d.ts +5 -5
- package/dist/src/connectionHelper/checks/reconnect.d.ts +5 -5
- package/dist/src/connectionHelper/checks/turn.d.ts +5 -5
- package/dist/src/connectionHelper/checks/webrtc.d.ts +5 -5
- package/dist/src/connectionHelper/checks/websocket.d.ts +5 -5
- package/dist/src/index.d.ts +34 -31
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/logger.d.ts +25 -25
- package/dist/src/options.d.ts +98 -98
- package/dist/src/proto/google/protobuf/timestamp.d.ts +145 -145
- package/dist/src/proto/livekit_models.d.ts +2300 -2300
- package/dist/src/proto/livekit_rtc.d.ts +14032 -14032
- package/dist/src/room/DefaultReconnectPolicy.d.ts +7 -7
- package/dist/src/room/DeviceManager.d.ts +8 -8
- package/dist/src/room/PCTransport.d.ts +37 -37
- package/dist/src/room/PCTransport.d.ts.map +1 -1
- package/dist/src/room/RTCEngine.d.ts +126 -121
- package/dist/src/room/RTCEngine.d.ts.map +1 -1
- package/dist/src/room/ReconnectPolicy.d.ts +23 -23
- package/dist/src/room/RegionUrlProvider.d.ts +13 -13
- package/dist/src/room/Room.d.ts +232 -232
- package/dist/src/room/defaults.d.ts +7 -7
- package/dist/src/room/defaults.d.ts.map +1 -1
- package/dist/src/room/errors.d.ts +42 -42
- package/dist/src/room/events.d.ts +455 -455
- package/dist/src/room/participant/LocalParticipant.d.ts +170 -170
- package/dist/src/room/participant/LocalParticipant.d.ts.map +1 -1
- package/dist/src/room/participant/Participant.d.ts +93 -93
- package/dist/src/room/participant/ParticipantTrackPermission.d.ts +25 -25
- package/dist/src/room/participant/RemoteParticipant.d.ts +52 -51
- package/dist/src/room/participant/RemoteParticipant.d.ts.map +1 -1
- package/dist/src/room/participant/publishUtils.d.ts +19 -18
- package/dist/src/room/participant/publishUtils.d.ts.map +1 -1
- package/dist/src/room/stats.d.ts +66 -66
- package/dist/src/room/timers.d.ts +12 -12
- package/dist/src/room/track/LocalAudioTrack.d.ts +24 -24
- package/dist/src/room/track/LocalAudioTrack.d.ts.map +1 -1
- package/dist/src/room/track/LocalTrack.d.ts +43 -43
- package/dist/src/room/track/LocalTrackPublication.d.ts +37 -37
- package/dist/src/room/track/LocalVideoTrack.d.ts +53 -53
- package/dist/src/room/track/LocalVideoTrack.d.ts.map +1 -1
- package/dist/src/room/track/RemoteAudioTrack.d.ts +52 -52
- package/dist/src/room/track/RemoteAudioTrack.d.ts.map +1 -1
- package/dist/src/room/track/RemoteTrack.d.ts +14 -14
- package/dist/src/room/track/RemoteTrackPublication.d.ts +60 -60
- package/dist/src/room/track/RemoteVideoTrack.d.ts +52 -52
- package/dist/src/room/track/RemoteVideoTrack.d.ts.map +1 -1
- package/dist/src/room/track/Track.d.ts +124 -124
- package/dist/src/room/track/TrackPublication.d.ts +67 -67
- package/dist/src/room/track/create.d.ts +23 -23
- package/dist/src/room/track/create.d.ts.map +1 -1
- package/dist/src/room/track/options.d.ts +255 -247
- package/dist/src/room/track/options.d.ts.map +1 -1
- package/dist/src/room/track/types.d.ts +22 -22
- package/dist/src/room/track/utils.d.ts +13 -13
- package/dist/src/room/types.d.ts +25 -25
- package/dist/src/room/utils.d.ts +86 -85
- package/dist/src/room/utils.d.ts.map +1 -1
- package/dist/src/test/MockMediaStreamTrack.d.ts +25 -25
- package/dist/src/test/mocks.d.ts +10 -10
- package/dist/src/version.d.ts +2 -2
- package/dist/ts4.2/src/connectionHelper/ConnectionCheck.d.ts +2 -1
- package/dist/ts4.2/src/index.d.ts +8 -6
- package/dist/ts4.2/src/room/PCTransport.d.ts +1 -1
- package/dist/ts4.2/src/room/RTCEngine.d.ts +6 -1
- package/dist/ts4.2/src/room/defaults.d.ts +1 -1
- package/dist/ts4.2/src/room/participant/LocalParticipant.d.ts +4 -4
- package/dist/ts4.2/src/room/participant/RemoteParticipant.d.ts +2 -1
- package/dist/ts4.2/src/room/participant/publishUtils.d.ts +2 -1
- package/dist/ts4.2/src/room/track/LocalAudioTrack.d.ts +1 -1
- package/dist/ts4.2/src/room/track/LocalVideoTrack.d.ts +1 -1
- package/dist/ts4.2/src/room/track/RemoteAudioTrack.d.ts +1 -1
- package/dist/ts4.2/src/room/track/create.d.ts +1 -1
- package/dist/ts4.2/src/room/track/options.d.ts +10 -2
- package/dist/ts4.2/src/room/utils.d.ts +1 -0
- package/package.json +12 -12
- package/src/api/SignalClient.ts +10 -11
- package/src/connectionHelper/ConnectionCheck.ts +2 -1
- package/src/index.ts +13 -8
- package/src/room/PCTransport.ts +9 -5
- package/src/room/RTCEngine.ts +10 -3
- package/src/room/defaults.ts +6 -4
- package/src/room/participant/LocalParticipant.ts +10 -9
- package/src/room/participant/RemoteParticipant.ts +2 -1
- package/src/room/participant/publishUtils.ts +7 -5
- package/src/room/track/LocalAudioTrack.ts +2 -1
- package/src/room/track/LocalVideoTrack.ts +3 -2
- package/src/room/track/RemoteAudioTrack.ts +2 -1
- package/src/room/track/RemoteVideoTrack.ts +4 -8
- package/src/room/track/create.ts +2 -2
- package/src/room/track/options.ts +23 -7
- package/src/room/utils.ts +15 -2
@@ -1,99 +1,99 @@
|
|
1
|
-
import Queue from 'async-await-queue';
|
2
|
-
import 'webrtc-adapter';
|
3
|
-
import { ParticipantInfo, ReconnectReason, Room, SpeakerInfo, VideoLayer } from '../proto/livekit_models';
|
4
|
-
import { AddTrackRequest, ConnectionQualityUpdate, JoinResponse, LeaveRequest, ReconnectResponse, SessionDescription, SignalRequest, SignalTarget, SimulateScenario, StreamStateUpdate, SubscribedQualityUpdate, SubscriptionPermissionUpdate, SyncState, TrackPermission, TrackPublishedResponse, TrackUnpublishedResponse, UpdateSubscription, UpdateTrackSettings } from '../proto/livekit_rtc';
|
5
|
-
interface ConnectOpts {
|
6
|
-
autoSubscribe: boolean;
|
7
|
-
/** internal */
|
8
|
-
reconnect?: boolean;
|
9
|
-
/** internal */
|
10
|
-
reconnectReason?: number;
|
11
|
-
/** internal */
|
12
|
-
sid?: string;
|
13
|
-
/** @deprecated */
|
14
|
-
publishOnly?: string;
|
15
|
-
adaptiveStream?: boolean;
|
16
|
-
}
|
17
|
-
export interface SignalOptions {
|
18
|
-
autoSubscribe: boolean;
|
19
|
-
/** @deprecated */
|
20
|
-
publishOnly?: string;
|
21
|
-
adaptiveStream?: boolean;
|
22
|
-
maxRetries: number;
|
23
|
-
}
|
24
|
-
type SignalMessage = SignalRequest['message'];
|
25
|
-
/** @internal */
|
26
|
-
export declare class SignalClient {
|
27
|
-
isConnected: boolean;
|
28
|
-
isReconnecting: boolean;
|
29
|
-
requestQueue: Queue;
|
30
|
-
queuedRequests: Array<() => Promise<void>>;
|
31
|
-
useJSON: boolean;
|
32
|
-
/** signal rtt in milliseconds */
|
33
|
-
rtt: number;
|
34
|
-
/** simulate signaling latency by delaying messages */
|
35
|
-
signalLatency?: number;
|
36
|
-
onClose?: (reason: string) => void;
|
37
|
-
onAnswer?: (sd: RTCSessionDescriptionInit) => void;
|
38
|
-
onOffer?: (sd: RTCSessionDescriptionInit) => void;
|
39
|
-
onTrickle?: (sd: RTCIceCandidateInit, target: SignalTarget) => void;
|
40
|
-
onParticipantUpdate?: (updates: ParticipantInfo[]) => void;
|
41
|
-
onLocalTrackPublished?: (res: TrackPublishedResponse) => void;
|
42
|
-
onNegotiateRequested?: () => void;
|
43
|
-
onSpeakersChanged?: (res: SpeakerInfo[]) => void;
|
44
|
-
onRemoteMuteChanged?: (trackSid: string, muted: boolean) => void;
|
45
|
-
onRoomUpdate?: (room: Room) => void;
|
46
|
-
onConnectionQuality?: (update: ConnectionQualityUpdate) => void;
|
47
|
-
onStreamStateUpdate?: (update: StreamStateUpdate) => void;
|
48
|
-
onSubscribedQualityUpdate?: (update: SubscribedQualityUpdate) => void;
|
49
|
-
onSubscriptionPermissionUpdate?: (update: SubscriptionPermissionUpdate) => void;
|
50
|
-
onLocalTrackUnpublished?: (res: TrackUnpublishedResponse) => void;
|
51
|
-
onTokenRefresh?: (token: string) => void;
|
52
|
-
onLeave?: (leave: LeaveRequest) => void;
|
53
|
-
connectOptions?: ConnectOpts;
|
54
|
-
ws?: WebSocket;
|
55
|
-
private options?;
|
56
|
-
private pingTimeout;
|
57
|
-
private pingTimeoutDuration;
|
58
|
-
private pingIntervalDuration;
|
59
|
-
private pingInterval;
|
60
|
-
private closingLock;
|
61
|
-
constructor(useJSON?: boolean);
|
62
|
-
join(url: string, token: string, opts: SignalOptions, abortSignal?: AbortSignal): Promise<JoinResponse>;
|
63
|
-
reconnect(url: string, token: string, sid?: string, reason?: ReconnectReason): Promise<ReconnectResponse | void>;
|
64
|
-
connect(url: string, token: string, opts: ConnectOpts, abortSignal?: AbortSignal): Promise<JoinResponse | ReconnectResponse | void>;
|
65
|
-
close(): Promise<void>;
|
66
|
-
sendOffer(offer: RTCSessionDescriptionInit): void;
|
67
|
-
sendAnswer(answer: RTCSessionDescriptionInit): Promise<void>;
|
68
|
-
sendIceCandidate(candidate: RTCIceCandidateInit, target: SignalTarget): Promise<void>;
|
69
|
-
sendMuteTrack(trackSid: string, muted: boolean): Promise<void>;
|
70
|
-
sendAddTrack(req: AddTrackRequest): Promise<void>;
|
71
|
-
sendUpdateLocalMetadata(metadata: string, name: string): Promise<void>;
|
72
|
-
sendUpdateTrackSettings(settings: UpdateTrackSettings): void;
|
73
|
-
sendUpdateSubscription(sub: UpdateSubscription): Promise<void>;
|
74
|
-
sendSyncState(sync: SyncState): Promise<void>;
|
75
|
-
sendUpdateVideoLayers(trackSid: string, layers: VideoLayer[]): Promise<void>;
|
76
|
-
sendUpdateSubscriptionPermissions(allParticipants: boolean, trackPermissions: TrackPermission[]): Promise<void>;
|
77
|
-
sendSimulateScenario(scenario: SimulateScenario): Promise<void>;
|
78
|
-
sendPing(): Promise<[void, void]>;
|
79
|
-
sendLeave(): Promise<void>;
|
80
|
-
sendRequest(message: SignalMessage, fromQueue?: boolean): Promise<void>;
|
81
|
-
private handleSignalResponse;
|
82
|
-
setReconnected(): void;
|
83
|
-
private handleOnClose;
|
84
|
-
private handleWSError;
|
85
|
-
/**
|
86
|
-
* Resets the ping timeout and starts a new timeout.
|
87
|
-
* Call this after receiving a pong message
|
88
|
-
*/
|
89
|
-
private resetPingTimeout;
|
90
|
-
/**
|
91
|
-
* Clears ping timeout (does not start a new timeout)
|
92
|
-
*/
|
93
|
-
private clearPingTimeout;
|
94
|
-
private startPingInterval;
|
95
|
-
private clearPingInterval;
|
96
|
-
}
|
97
|
-
export declare function toProtoSessionDescription(rsd: RTCSessionDescription | RTCSessionDescriptionInit): SessionDescription;
|
98
|
-
export {};
|
1
|
+
import Queue from 'async-await-queue';
|
2
|
+
import 'webrtc-adapter';
|
3
|
+
import { ParticipantInfo, ReconnectReason, Room, SpeakerInfo, VideoLayer } from '../proto/livekit_models';
|
4
|
+
import { AddTrackRequest, ConnectionQualityUpdate, JoinResponse, LeaveRequest, ReconnectResponse, SessionDescription, SignalRequest, SignalTarget, SimulateScenario, StreamStateUpdate, SubscribedQualityUpdate, SubscriptionPermissionUpdate, SyncState, TrackPermission, TrackPublishedResponse, TrackUnpublishedResponse, UpdateSubscription, UpdateTrackSettings } from '../proto/livekit_rtc';
|
5
|
+
interface ConnectOpts {
|
6
|
+
autoSubscribe: boolean;
|
7
|
+
/** internal */
|
8
|
+
reconnect?: boolean;
|
9
|
+
/** internal */
|
10
|
+
reconnectReason?: number;
|
11
|
+
/** internal */
|
12
|
+
sid?: string;
|
13
|
+
/** @deprecated */
|
14
|
+
publishOnly?: string;
|
15
|
+
adaptiveStream?: boolean;
|
16
|
+
}
|
17
|
+
export interface SignalOptions {
|
18
|
+
autoSubscribe: boolean;
|
19
|
+
/** @deprecated */
|
20
|
+
publishOnly?: string;
|
21
|
+
adaptiveStream?: boolean;
|
22
|
+
maxRetries: number;
|
23
|
+
}
|
24
|
+
type SignalMessage = SignalRequest['message'];
|
25
|
+
/** @internal */
|
26
|
+
export declare class SignalClient {
|
27
|
+
isConnected: boolean;
|
28
|
+
isReconnecting: boolean;
|
29
|
+
requestQueue: Queue;
|
30
|
+
queuedRequests: Array<() => Promise<void>>;
|
31
|
+
useJSON: boolean;
|
32
|
+
/** signal rtt in milliseconds */
|
33
|
+
rtt: number;
|
34
|
+
/** simulate signaling latency by delaying messages */
|
35
|
+
signalLatency?: number;
|
36
|
+
onClose?: (reason: string) => void;
|
37
|
+
onAnswer?: (sd: RTCSessionDescriptionInit) => void;
|
38
|
+
onOffer?: (sd: RTCSessionDescriptionInit) => void;
|
39
|
+
onTrickle?: (sd: RTCIceCandidateInit, target: SignalTarget) => void;
|
40
|
+
onParticipantUpdate?: (updates: ParticipantInfo[]) => void;
|
41
|
+
onLocalTrackPublished?: (res: TrackPublishedResponse) => void;
|
42
|
+
onNegotiateRequested?: () => void;
|
43
|
+
onSpeakersChanged?: (res: SpeakerInfo[]) => void;
|
44
|
+
onRemoteMuteChanged?: (trackSid: string, muted: boolean) => void;
|
45
|
+
onRoomUpdate?: (room: Room) => void;
|
46
|
+
onConnectionQuality?: (update: ConnectionQualityUpdate) => void;
|
47
|
+
onStreamStateUpdate?: (update: StreamStateUpdate) => void;
|
48
|
+
onSubscribedQualityUpdate?: (update: SubscribedQualityUpdate) => void;
|
49
|
+
onSubscriptionPermissionUpdate?: (update: SubscriptionPermissionUpdate) => void;
|
50
|
+
onLocalTrackUnpublished?: (res: TrackUnpublishedResponse) => void;
|
51
|
+
onTokenRefresh?: (token: string) => void;
|
52
|
+
onLeave?: (leave: LeaveRequest) => void;
|
53
|
+
connectOptions?: ConnectOpts;
|
54
|
+
ws?: WebSocket;
|
55
|
+
private options?;
|
56
|
+
private pingTimeout;
|
57
|
+
private pingTimeoutDuration;
|
58
|
+
private pingIntervalDuration;
|
59
|
+
private pingInterval;
|
60
|
+
private closingLock;
|
61
|
+
constructor(useJSON?: boolean);
|
62
|
+
join(url: string, token: string, opts: SignalOptions, abortSignal?: AbortSignal): Promise<JoinResponse>;
|
63
|
+
reconnect(url: string, token: string, sid?: string, reason?: ReconnectReason): Promise<ReconnectResponse | void>;
|
64
|
+
connect(url: string, token: string, opts: ConnectOpts, abortSignal?: AbortSignal): Promise<JoinResponse | ReconnectResponse | void>;
|
65
|
+
close(): Promise<void>;
|
66
|
+
sendOffer(offer: RTCSessionDescriptionInit): void;
|
67
|
+
sendAnswer(answer: RTCSessionDescriptionInit): Promise<void>;
|
68
|
+
sendIceCandidate(candidate: RTCIceCandidateInit, target: SignalTarget): Promise<void>;
|
69
|
+
sendMuteTrack(trackSid: string, muted: boolean): Promise<void>;
|
70
|
+
sendAddTrack(req: AddTrackRequest): Promise<void>;
|
71
|
+
sendUpdateLocalMetadata(metadata: string, name: string): Promise<void>;
|
72
|
+
sendUpdateTrackSettings(settings: UpdateTrackSettings): void;
|
73
|
+
sendUpdateSubscription(sub: UpdateSubscription): Promise<void>;
|
74
|
+
sendSyncState(sync: SyncState): Promise<void>;
|
75
|
+
sendUpdateVideoLayers(trackSid: string, layers: VideoLayer[]): Promise<void>;
|
76
|
+
sendUpdateSubscriptionPermissions(allParticipants: boolean, trackPermissions: TrackPermission[]): Promise<void>;
|
77
|
+
sendSimulateScenario(scenario: SimulateScenario): Promise<void>;
|
78
|
+
sendPing(): Promise<[void, void]>;
|
79
|
+
sendLeave(): Promise<void>;
|
80
|
+
sendRequest(message: SignalMessage, fromQueue?: boolean): Promise<void>;
|
81
|
+
private handleSignalResponse;
|
82
|
+
setReconnected(): void;
|
83
|
+
private handleOnClose;
|
84
|
+
private handleWSError;
|
85
|
+
/**
|
86
|
+
* Resets the ping timeout and starts a new timeout.
|
87
|
+
* Call this after receiving a pong message
|
88
|
+
*/
|
89
|
+
private resetPingTimeout;
|
90
|
+
/**
|
91
|
+
* Clears ping timeout (does not start a new timeout)
|
92
|
+
*/
|
93
|
+
private clearPingTimeout;
|
94
|
+
private startPingInterval;
|
95
|
+
private clearPingInterval;
|
96
|
+
}
|
97
|
+
export declare function toProtoSessionDescription(rsd: RTCSessionDescription | RTCSessionDescriptionInit): SessionDescription;
|
98
|
+
export {};
|
99
99
|
//# sourceMappingURL=SignalClient.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"SignalClient.d.ts","sourceRoot":"","sources":["../../../src/api/SignalClient.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,mBAAmB,CAAC;AACtC,OAAO,gBAAgB,CAAC;AAExB,OAAO,EAGL,eAAe,EACf,eAAe,EACf,IAAI,EACJ,WAAW,EACX,UAAU,EACX,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,eAAe,EACf,uBAAuB,EACvB,YAAY,EACZ,YAAY,EACZ,iBAAiB,EACjB,kBAAkB,EAClB,aAAa,EAEb,YAAY,EACZ,gBAAgB,EAChB,iBAAiB,EACjB,uBAAuB,EACvB,4BAA4B,EAC5B,SAAS,EACT,eAAe,EACf,sBAAsB,EACtB,wBAAwB,EACxB,kBAAkB,EAClB,mBAAmB,EACpB,MAAM,sBAAsB,CAAC;AAM9B,UAAU,WAAW;IACnB,aAAa,EAAE,OAAO,CAAC;IACvB,eAAe;IACf,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB,eAAe;IACf,eAAe,CAAC,EAAE,MAAM,CAAC;IAEzB,eAAe;IACf,GAAG,CAAC,EAAE,MAAM,CAAC;IAEb,kBAAkB;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B;AAGD,MAAM,WAAW,aAAa;I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AAC,EAAE,WAAW,GACxB,OAAO,CAAC,YAAY,GAAG,iBAAiB,GAAG,IAAI,CAAC;
|
1
|
+
{"version":3,"file":"SignalClient.d.ts","sourceRoot":"","sources":["../../../src/api/SignalClient.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,mBAAmB,CAAC;AACtC,OAAO,gBAAgB,CAAC;AAExB,OAAO,EAGL,eAAe,EACf,eAAe,EACf,IAAI,EACJ,WAAW,EACX,UAAU,EACX,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,eAAe,EACf,uBAAuB,EACvB,YAAY,EACZ,YAAY,EACZ,iBAAiB,EACjB,kBAAkB,EAClB,aAAa,EAEb,YAAY,EACZ,gBAAgB,EAChB,iBAAiB,EACjB,uBAAuB,EACvB,4BAA4B,EAC5B,SAAS,EACT,eAAe,EACf,sBAAsB,EACtB,wBAAwB,EACxB,kBAAkB,EAClB,mBAAmB,EACpB,MAAM,sBAAsB,CAAC;AAM9B,UAAU,WAAW;IACnB,aAAa,EAAE,OAAO,CAAC;IACvB,eAAe;IACf,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB,eAAe;IACf,eAAe,CAAC,EAAE,MAAM,CAAC;IAEzB,eAAe;IACf,GAAG,CAAC,EAAE,MAAM,CAAC;IAEb,kBAAkB;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B;AAGD,MAAM,WAAW,aAAa;IAC5B,aAAa,EAAE,OAAO,CAAC;IACvB,kBAAkB;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,KAAK,aAAa,GAAG,aAAa,CAAC,SAAS,CAAC,CAAC;AAmB9C,gBAAgB;AAChB,qBAAa,YAAY;IACvB,WAAW,EAAE,OAAO,CAAC;IAErB,cAAc,EAAE,OAAO,CAAC;IAExB,YAAY,EAAE,KAAK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AE,eAAe;IAOjC,uBAAuB,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM;IAUtD,uBAAuB,CAAC,QAAQ,EAAE,mBAAmB;IAOrD,sBAAsB,CAAC,GAAG,EAAE,kBAAkB;IAO9C,aAAa,CAAC,IAAI,EAAE,SAAS;IAO7B,qBAAqB,CAAC,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE;IAU5D,iCAAiC,CAAC,eAAe,EAAE,OAAO,EAAE,gBAAgB,EAAE,eAAe,EAAE;IAU/F,oBAAoB,CAAC,QAAQ,EAAE,gBAAgB;IAO/C,QAAQ;IAiBR,SAAS;IAUH,WAAW,CAAC,OAAO,EAAE,aAAa,EAAE,SAAS,GAAE,OAAe;IAoCpE,OAAO,CAAC,oBAAoB;IA+E5B,cAAc;YAUA,aAAa;IAS3B,OAAO,CAAC,aAAa;IAIrB;;;OAGG;IACH,OAAO,CAAC,gBAAgB;IAgBxB;;OAEG;IACH,OAAO,CAAC,gBAAgB;IAMxB,OAAO,CAAC,iBAAiB;IAazB,OAAO,CAAC,iBAAiB;CAO1B;AAoBD,wBAAgB,yBAAyB,CACvC,GAAG,EAAE,qBAAqB,GAAG,yBAAyB,GACrD,kBAAkB,CAMpB"}
|
@@ -1,25 +1,26 @@
|
|
1
|
-
import type TypedEmitter from 'typed-emitter';
|
2
|
-
import {
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
private
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
1
|
+
import type TypedEmitter from 'typed-emitter';
|
2
|
+
import { CheckStatus, Checker } from './checks/Checker';
|
3
|
+
import type { CheckInfo, InstantiableCheck } from './checks/Checker';
|
4
|
+
export type { CheckInfo, CheckStatus };
|
5
|
+
declare const ConnectionCheck_base: new () => TypedEmitter<ConnectionCheckCallbacks>;
|
6
|
+
export declare class ConnectionCheck extends ConnectionCheck_base {
|
7
|
+
token: string;
|
8
|
+
url: string;
|
9
|
+
private checkResults;
|
10
|
+
constructor(url: string, token: string);
|
11
|
+
private getNextCheckId;
|
12
|
+
private updateCheck;
|
13
|
+
isSuccess(): boolean;
|
14
|
+
getResults(): CheckInfo[];
|
15
|
+
createAndRunCheck<T extends Checker>(check: InstantiableCheck<T>): Promise<CheckInfo>;
|
16
|
+
checkWebsocket(): Promise<CheckInfo>;
|
17
|
+
checkWebRTC(): Promise<CheckInfo>;
|
18
|
+
checkTURN(): Promise<CheckInfo>;
|
19
|
+
checkReconnect(): Promise<CheckInfo>;
|
20
|
+
checkPublishAudio(): Promise<CheckInfo>;
|
21
|
+
checkPublishVideo(): Promise<CheckInfo>;
|
22
|
+
}
|
23
|
+
type ConnectionCheckCallbacks = {
|
24
|
+
checkUpdate: (id: number, info: CheckInfo) => void;
|
25
|
+
};
|
25
26
|
//# sourceMappingURL=ConnectionCheck.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ConnectionCheck.d.ts","sourceRoot":"","sources":["../../../src/connectionHelper/ConnectionCheck.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,YAAY,MAAM,eAAe,CAAC;AAC9C,OAAO,EAAE,
|
1
|
+
{"version":3,"file":"ConnectionCheck.d.ts","sourceRoot":"","sources":["../../../src/connectionHelper/ConnectionCheck.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,YAAY,MAAM,eAAe,CAAC;AAC9C,OAAO,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AACxD,OAAO,KAAK,EAAE,SAAS,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAQrE,YAAY,EAAE,SAAS,EAAE,WAAW,EAAE,CAAC;8CAEyB,aAAa,wBAAwB,CAAC;AAAtG,qBAAa,eAAgB,SAAQ,oBAAkE;IACrG,KAAK,EAAE,MAAM,CAAC;IAEd,GAAG,EAAE,MAAM,CAAC;IAEZ,OAAO,CAAC,YAAY,CAAqC;gBAE7C,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM;IAMtC,OAAO,CAAC,cAAc;IAWtB,OAAO,CAAC,WAAW;IAKnB,SAAS;IAIT,UAAU;IAIJ,iBAAiB,CAAC,CAAC,SAAS,OAAO,EAAE,KAAK,EAAE,iBAAiB,CAAC,CAAC,CAAC;IAYhE,cAAc;IAId,WAAW;IAIX,SAAS;IAIT,cAAc;IAId,iBAAiB;IAIjB,iBAAiB;CAGxB;AAED,KAAK,wBAAwB,GAAG;IAC9B,WAAW,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS,KAAK,IAAI,CAAC;CACpD,CAAC"}
|
@@ -1,59 +1,59 @@
|
|
1
|
-
import type TypedEmitter from 'typed-emitter';
|
2
|
-
import type { RoomConnectOptions, RoomOptions } from '../../options';
|
3
|
-
import type RTCEngine from '../../room/RTCEngine';
|
4
|
-
import Room from '../../room/Room';
|
5
|
-
type LogMessage = {
|
6
|
-
level: 'info' | 'warning' | 'error';
|
7
|
-
message: string;
|
8
|
-
};
|
9
|
-
export declare enum CheckStatus {
|
10
|
-
IDLE = 0,
|
11
|
-
RUNNING = 1,
|
12
|
-
SKIPPED = 2,
|
13
|
-
SUCCESS = 3,
|
14
|
-
FAILED = 4
|
15
|
-
}
|
16
|
-
export type CheckInfo = {
|
17
|
-
name: string;
|
18
|
-
logs: Array<LogMessage>;
|
19
|
-
status: CheckStatus;
|
20
|
-
description: string;
|
21
|
-
};
|
22
|
-
export interface CheckerOptions {
|
23
|
-
errorsAsWarnings?: boolean;
|
24
|
-
roomOptions?: RoomOptions;
|
25
|
-
connectOptions?: RoomConnectOptions;
|
26
|
-
}
|
27
|
-
declare const Checker_base: new () => TypedEmitter<CheckerCallbacks>;
|
28
|
-
export declare abstract class Checker extends Checker_base {
|
29
|
-
protected url: string;
|
30
|
-
protected token: string;
|
31
|
-
room: Room;
|
32
|
-
connectOptions?: RoomConnectOptions;
|
33
|
-
status: CheckStatus;
|
34
|
-
logs: Array<LogMessage>;
|
35
|
-
errorsAsWarnings: boolean;
|
36
|
-
name: string;
|
37
|
-
constructor(url: string, token: string, options?: CheckerOptions);
|
38
|
-
abstract get description(): string;
|
39
|
-
protected abstract perform(): Promise<void>;
|
40
|
-
run(onComplete?: () => void): Promise<CheckInfo>;
|
41
|
-
protected isSuccess(): boolean;
|
42
|
-
protected connect(): Promise<Room>;
|
43
|
-
protected disconnect(): Promise<void>;
|
44
|
-
protected skip(): void;
|
45
|
-
protected appendMessage(message: string): void;
|
46
|
-
protected appendWarning(message: string): void;
|
47
|
-
protected appendError(message: string): void;
|
48
|
-
protected setStatus(status: CheckStatus): void;
|
49
|
-
protected get engine(): RTCEngine | undefined;
|
50
|
-
getInfo(): CheckInfo;
|
51
|
-
}
|
52
|
-
export type InstantiableCheck<T extends Checker> = {
|
53
|
-
new (url: string, token: string, options?: CheckerOptions): T;
|
54
|
-
};
|
55
|
-
type CheckerCallbacks = {
|
56
|
-
update: (info: CheckInfo) => void;
|
57
|
-
};
|
58
|
-
export {};
|
1
|
+
import type TypedEmitter from 'typed-emitter';
|
2
|
+
import type { RoomConnectOptions, RoomOptions } from '../../options';
|
3
|
+
import type RTCEngine from '../../room/RTCEngine';
|
4
|
+
import Room from '../../room/Room';
|
5
|
+
type LogMessage = {
|
6
|
+
level: 'info' | 'warning' | 'error';
|
7
|
+
message: string;
|
8
|
+
};
|
9
|
+
export declare enum CheckStatus {
|
10
|
+
IDLE = 0,
|
11
|
+
RUNNING = 1,
|
12
|
+
SKIPPED = 2,
|
13
|
+
SUCCESS = 3,
|
14
|
+
FAILED = 4
|
15
|
+
}
|
16
|
+
export type CheckInfo = {
|
17
|
+
name: string;
|
18
|
+
logs: Array<LogMessage>;
|
19
|
+
status: CheckStatus;
|
20
|
+
description: string;
|
21
|
+
};
|
22
|
+
export interface CheckerOptions {
|
23
|
+
errorsAsWarnings?: boolean;
|
24
|
+
roomOptions?: RoomOptions;
|
25
|
+
connectOptions?: RoomConnectOptions;
|
26
|
+
}
|
27
|
+
declare const Checker_base: new () => TypedEmitter<CheckerCallbacks>;
|
28
|
+
export declare abstract class Checker extends Checker_base {
|
29
|
+
protected url: string;
|
30
|
+
protected token: string;
|
31
|
+
room: Room;
|
32
|
+
connectOptions?: RoomConnectOptions;
|
33
|
+
status: CheckStatus;
|
34
|
+
logs: Array<LogMessage>;
|
35
|
+
errorsAsWarnings: boolean;
|
36
|
+
name: string;
|
37
|
+
constructor(url: string, token: string, options?: CheckerOptions);
|
38
|
+
abstract get description(): string;
|
39
|
+
protected abstract perform(): Promise<void>;
|
40
|
+
run(onComplete?: () => void): Promise<CheckInfo>;
|
41
|
+
protected isSuccess(): boolean;
|
42
|
+
protected connect(): Promise<Room>;
|
43
|
+
protected disconnect(): Promise<void>;
|
44
|
+
protected skip(): void;
|
45
|
+
protected appendMessage(message: string): void;
|
46
|
+
protected appendWarning(message: string): void;
|
47
|
+
protected appendError(message: string): void;
|
48
|
+
protected setStatus(status: CheckStatus): void;
|
49
|
+
protected get engine(): RTCEngine | undefined;
|
50
|
+
getInfo(): CheckInfo;
|
51
|
+
}
|
52
|
+
export type InstantiableCheck<T extends Checker> = {
|
53
|
+
new (url: string, token: string, options?: CheckerOptions): T;
|
54
|
+
};
|
55
|
+
type CheckerCallbacks = {
|
56
|
+
update: (info: CheckInfo) => void;
|
57
|
+
};
|
58
|
+
export {};
|
59
59
|
//# sourceMappingURL=Checker.d.ts.map
|
@@ -1,6 +1,6 @@
|
|
1
|
-
import { Checker } from './Checker';
|
2
|
-
export declare class PublishAudioCheck extends Checker {
|
3
|
-
get description(): string;
|
4
|
-
perform(): Promise<void>;
|
5
|
-
}
|
1
|
+
import { Checker } from './Checker';
|
2
|
+
export declare class PublishAudioCheck extends Checker {
|
3
|
+
get description(): string;
|
4
|
+
perform(): Promise<void>;
|
5
|
+
}
|
6
6
|
//# sourceMappingURL=publishAudio.d.ts.map
|
@@ -1,6 +1,6 @@
|
|
1
|
-
import { Checker } from './Checker';
|
2
|
-
export declare class PublishVideoCheck extends Checker {
|
3
|
-
get description(): string;
|
4
|
-
perform(): Promise<void>;
|
5
|
-
}
|
1
|
+
import { Checker } from './Checker';
|
2
|
+
export declare class PublishVideoCheck extends Checker {
|
3
|
+
get description(): string;
|
4
|
+
perform(): Promise<void>;
|
5
|
+
}
|
6
6
|
//# sourceMappingURL=publishVideo.d.ts.map
|
@@ -1,6 +1,6 @@
|
|
1
|
-
import { Checker } from './Checker';
|
2
|
-
export declare class ReconnectCheck extends Checker {
|
3
|
-
get description(): string;
|
4
|
-
perform(): Promise<void>;
|
5
|
-
}
|
1
|
+
import { Checker } from './Checker';
|
2
|
+
export declare class ReconnectCheck extends Checker {
|
3
|
+
get description(): string;
|
4
|
+
perform(): Promise<void>;
|
5
|
+
}
|
6
6
|
//# sourceMappingURL=reconnect.d.ts.map
|
@@ -1,6 +1,6 @@
|
|
1
|
-
import { Checker } from './Checker';
|
2
|
-
export declare class TURNCheck extends Checker {
|
3
|
-
get description(): string;
|
4
|
-
perform(): Promise<void>;
|
5
|
-
}
|
1
|
+
import { Checker } from './Checker';
|
2
|
+
export declare class TURNCheck extends Checker {
|
3
|
+
get description(): string;
|
4
|
+
perform(): Promise<void>;
|
5
|
+
}
|
6
6
|
//# sourceMappingURL=turn.d.ts.map
|
@@ -1,6 +1,6 @@
|
|
1
|
-
import { Checker } from './Checker';
|
2
|
-
export declare class WebRTCCheck extends Checker {
|
3
|
-
get description(): string;
|
4
|
-
protected perform(): Promise<void>;
|
5
|
-
}
|
1
|
+
import { Checker } from './Checker';
|
2
|
+
export declare class WebRTCCheck extends Checker {
|
3
|
+
get description(): string;
|
4
|
+
protected perform(): Promise<void>;
|
5
|
+
}
|
6
6
|
//# sourceMappingURL=webrtc.d.ts.map
|
@@ -1,6 +1,6 @@
|
|
1
|
-
import { Checker } from './Checker';
|
2
|
-
export declare class WebSocketCheck extends Checker {
|
3
|
-
get description(): string;
|
4
|
-
protected perform(): Promise<void>;
|
5
|
-
}
|
1
|
+
import { Checker } from './Checker';
|
2
|
+
export declare class WebSocketCheck extends Checker {
|
3
|
+
get description(): string;
|
4
|
+
protected perform(): Promise<void>;
|
5
|
+
}
|
6
6
|
//# sourceMappingURL=websocket.d.ts.map
|
package/dist/src/index.d.ts
CHANGED
@@ -1,32 +1,35 @@
|
|
1
|
-
import { LogLevel, setLogExtension, setLogLevel } from './logger';
|
2
|
-
import { DataPacket_Kind, DisconnectReason, VideoQuality } from './proto/livekit_models';
|
3
|
-
import DefaultReconnectPolicy from './room/DefaultReconnectPolicy';
|
4
|
-
import Room, { ConnectionState, RoomState } from './room/Room';
|
5
|
-
import LocalParticipant from './room/participant/LocalParticipant';
|
6
|
-
import Participant, { ConnectionQuality } from './room/participant/Participant';
|
7
|
-
import type { ParticipantTrackPermission } from './room/participant/ParticipantTrackPermission';
|
8
|
-
import RemoteParticipant from './room/participant/RemoteParticipant';
|
9
|
-
import CriticalTimers from './room/timers';
|
10
|
-
import LocalAudioTrack from './room/track/LocalAudioTrack';
|
11
|
-
import LocalTrack from './room/track/LocalTrack';
|
12
|
-
import LocalTrackPublication from './room/track/LocalTrackPublication';
|
13
|
-
import LocalVideoTrack from './room/track/LocalVideoTrack';
|
14
|
-
import RemoteAudioTrack from './room/track/RemoteAudioTrack';
|
15
|
-
import RemoteTrack from './room/track/RemoteTrack';
|
16
|
-
import RemoteTrackPublication from './room/track/RemoteTrackPublication';
|
17
|
-
import
|
18
|
-
import
|
19
|
-
import
|
20
|
-
import
|
21
|
-
|
22
|
-
|
23
|
-
export * from './
|
24
|
-
export
|
25
|
-
export * from './room/
|
26
|
-
export * from './room/
|
27
|
-
export * from './room/track/Track';
|
28
|
-
export * from './room/track/
|
29
|
-
export * from './
|
30
|
-
export * from './
|
31
|
-
export {
|
1
|
+
import { LogLevel, setLogExtension, setLogLevel } from './logger';
|
2
|
+
import { DataPacket_Kind, DisconnectReason, VideoQuality } from './proto/livekit_models';
|
3
|
+
import DefaultReconnectPolicy from './room/DefaultReconnectPolicy';
|
4
|
+
import Room, { ConnectionState, RoomState } from './room/Room';
|
5
|
+
import LocalParticipant from './room/participant/LocalParticipant';
|
6
|
+
import Participant, { ConnectionQuality } from './room/participant/Participant';
|
7
|
+
import type { ParticipantTrackPermission } from './room/participant/ParticipantTrackPermission';
|
8
|
+
import RemoteParticipant from './room/participant/RemoteParticipant';
|
9
|
+
import CriticalTimers from './room/timers';
|
10
|
+
import LocalAudioTrack from './room/track/LocalAudioTrack';
|
11
|
+
import LocalTrack from './room/track/LocalTrack';
|
12
|
+
import LocalTrackPublication from './room/track/LocalTrackPublication';
|
13
|
+
import LocalVideoTrack from './room/track/LocalVideoTrack';
|
14
|
+
import RemoteAudioTrack from './room/track/RemoteAudioTrack';
|
15
|
+
import RemoteTrack from './room/track/RemoteTrack';
|
16
|
+
import RemoteTrackPublication from './room/track/RemoteTrackPublication';
|
17
|
+
import type { ElementInfo } from './room/track/RemoteVideoTrack';
|
18
|
+
import RemoteVideoTrack from './room/track/RemoteVideoTrack';
|
19
|
+
import { TrackPublication } from './room/track/TrackPublication';
|
20
|
+
import type { LiveKitReactNativeInfo } from './room/types';
|
21
|
+
import type { AudioAnalyserOptions } from './room/utils';
|
22
|
+
import { createAudioAnalyser, getEmptyAudioStreamTrack, getEmptyVideoStreamTrack, isBrowserSupported, supportsAV1, supportsAdaptiveStream, supportsDynacast, supportsVP9 } from './room/utils';
|
23
|
+
export * from './connectionHelper/ConnectionCheck';
|
24
|
+
export * from './options';
|
25
|
+
export * from './room/errors';
|
26
|
+
export * from './room/events';
|
27
|
+
export * from './room/track/Track';
|
28
|
+
export * from './room/track/create';
|
29
|
+
export * from './room/track/options';
|
30
|
+
export * from './room/track/types';
|
31
|
+
export type { DataPublishOptions, SimulationScenario } from './room/types';
|
32
|
+
export * from './version';
|
33
|
+
export { setLogLevel, setLogExtension, getEmptyAudioStreamTrack, getEmptyVideoStreamTrack, isBrowserSupported, supportsAdaptiveStream, supportsDynacast, supportsAV1, supportsVP9, createAudioAnalyser, LogLevel, Room, ConnectionState, RoomState, DataPacket_Kind, DisconnectReason, Participant, RemoteParticipant, LocalParticipant, LocalAudioTrack, LocalVideoTrack, LocalTrack, LocalTrackPublication, RemoteTrack, RemoteAudioTrack, RemoteVideoTrack, RemoteTrackPublication, TrackPublication, VideoQuality, ConnectionQuality, DefaultReconnectPolicy, CriticalTimers, };
|
34
|
+
export type { ElementInfo, ParticipantTrackPermission, AudioAnalyserOptions, LiveKitReactNativeInfo, };
|
32
35
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/src/index.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAClE,OAAO,EAAE,eAAe,EAAE,gBAAgB,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AACzF,OAAO,sBAAsB,MAAM,+BAA+B,CAAC;AACnE,OAAO,IAAI,EAAE,EAAE,eAAe,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAC/D,OAAO,gBAAgB,MAAM,qCAAqC,CAAC;AACnE,OAAO,WAAW,EAAE,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AAChF,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,+CAA+C,CAAC;AAChG,OAAO,iBAAiB,MAAM,sCAAsC,CAAC;AACrE,OAAO,cAAc,MAAM,eAAe,CAAC;AAC3C,OAAO,eAAe,MAAM,8BAA8B,CAAC;AAC3D,OAAO,UAAU,MAAM,yBAAyB,CAAC;AACjD,OAAO,qBAAqB,MAAM,oCAAoC,CAAC;AACvE,OAAO,eAAe,MAAM,8BAA8B,CAAC;AAC3D,OAAO,gBAAgB,MAAM,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;AACzD,OAAO,EACL,mBAAmB,EACnB,wBAAwB,EACxB,wBAAwB,EACxB,kBAAkB,EAClB,WAAW,EACX,sBAAsB,EACtB,gBAAgB,EAChB,WAAW,EACZ,MAAM,cAAc,CAAC;AAEtB,cAAc,oCAAoC,CAAC;AACnD,cAAc,WAAW,CAAC;AAC1B,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,sBAAsB,CAAC;AACrC,cAAc,oBAAoB,CAAC;AACnC,YAAY,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAC3E,cAAc,WAAW,CAAC;AAC1B,OAAO,EACL,WAAW,EACX,eAAe,EACf,wBAAwB,EACxB,wBAAwB,EACxB,kBAAkB,EAClB,sBAAsB,EACtB,gBAAgB,EAChB,WAAW,EACX,WAAW,EACX,mBAAmB,EACnB,QAAQ,EACR,IAAI,EACJ,eAAe,EACf,SAAS,EACT,eAAe,EACf,gBAAgB,EAChB,WAAW,EACX,iBAAiB,EACjB,gBAAgB,EAChB,eAAe,EACf,eAAe,EACf,UAAU,EACV,qBAAqB,EACrB,WAAW,EACX,gBAAgB,EAChB,gBAAgB,EAChB,sBAAsB,EACtB,gBAAgB,EAChB,YAAY,EACZ,iBAAiB,EACjB,sBAAsB,EACtB,cAAc,GACf,CAAC;AACF,YAAY,EACV,WAAW,EACX,0BAA0B,EAC1B,oBAAoB,EACpB,sBAAsB,GACvB,CAAC"}
|
package/dist/src/logger.d.ts
CHANGED
@@ -1,26 +1,26 @@
|
|
1
|
-
export declare enum LogLevel {
|
2
|
-
trace = 0,
|
3
|
-
debug = 1,
|
4
|
-
info = 2,
|
5
|
-
warn = 3,
|
6
|
-
error = 4,
|
7
|
-
silent = 5
|
8
|
-
}
|
9
|
-
type LogLevelString = keyof typeof LogLevel;
|
10
|
-
type StructuredLogger = {
|
11
|
-
trace: (msg: string, context?: object) => void;
|
12
|
-
debug: (msg: string, context?: object) => void;
|
13
|
-
info: (msg: string, context?: object) => void;
|
14
|
-
warn: (msg: string, context?: object) => void;
|
15
|
-
error: (msg: string, context?: object) => void;
|
16
|
-
};
|
17
|
-
declare const _default: StructuredLogger;
|
18
|
-
export default _default;
|
19
|
-
export declare function setLogLevel(level: LogLevel | LogLevelString): void;
|
20
|
-
export type LogExtension = (level: LogLevel, msg: string, context?: object) => void;
|
21
|
-
/**
|
22
|
-
* use this to hook into the logging function to allow sending internal livekit logs to third party services
|
23
|
-
* if set, the browser logs will lose their stacktrace information (see https://github.com/pimterry/loglevel#writing-plugins)
|
24
|
-
*/
|
25
|
-
export declare function setLogExtension(extension: LogExtension): void;
|
1
|
+
export declare enum LogLevel {
|
2
|
+
trace = 0,
|
3
|
+
debug = 1,
|
4
|
+
info = 2,
|
5
|
+
warn = 3,
|
6
|
+
error = 4,
|
7
|
+
silent = 5
|
8
|
+
}
|
9
|
+
type LogLevelString = keyof typeof LogLevel;
|
10
|
+
type StructuredLogger = {
|
11
|
+
trace: (msg: string, context?: object) => void;
|
12
|
+
debug: (msg: string, context?: object) => void;
|
13
|
+
info: (msg: string, context?: object) => void;
|
14
|
+
warn: (msg: string, context?: object) => void;
|
15
|
+
error: (msg: string, context?: object) => void;
|
16
|
+
};
|
17
|
+
declare const _default: StructuredLogger;
|
18
|
+
export default _default;
|
19
|
+
export declare function setLogLevel(level: LogLevel | LogLevelString): void;
|
20
|
+
export type LogExtension = (level: LogLevel, msg: string, context?: object) => void;
|
21
|
+
/**
|
22
|
+
* use this to hook into the logging function to allow sending internal livekit logs to third party services
|
23
|
+
* if set, the browser logs will lose their stacktrace information (see https://github.com/pimterry/loglevel#writing-plugins)
|
24
|
+
*/
|
25
|
+
export declare function setLogExtension(extension: LogExtension): void;
|
26
26
|
//# sourceMappingURL=logger.d.ts.map
|