@axonkit/client-sdk-js 0.1.0 → 0.2.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/Room.d.ts +16 -7
- package/dist/axonkit-client.esm.js +1 -1
- package/dist/axonkit-client.umd.js +1 -1
- package/dist/events.d.ts +71 -46
- package/dist/index.d.ts +2 -2
- package/dist/participant/LocalParticipant.d.ts +2 -6
- package/dist/participant/Participant.d.ts +1 -1
- package/dist/protocol/types.d.ts +2 -2
- package/dist/room/DefaultReconnectPolicy.d.ts +17 -1
- package/dist/room/options.d.ts +28 -3
- package/dist/track/LocalAudioTrack.d.ts +1 -1
- package/dist/track/LocalVideoTrack.d.ts +1 -1
- package/dist/track/options.d.ts +0 -5
- package/dist/utils/typedEmitter.d.ts +1 -1
- package/dist/version.d.ts +1 -1
- package/package.json +1 -1
package/dist/Room.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import { RemoteParticipant } from './participant/RemoteParticipant';
|
|
|
4
4
|
import { Participant } from './participant/Participant';
|
|
5
5
|
import { LocalTrackPublication } from './participant/LocalTrackPublication';
|
|
6
6
|
import type { RemoteTrackPublication } from './participant/RemoteTrackPublication';
|
|
7
|
-
import {
|
|
7
|
+
import { ConnectionState, DisconnectReason, StreamState, type ServerInfo, type GroupInfo, ConnectionQuality } from './protocol/types';
|
|
8
8
|
import type { RoomOptions, RoomConnectOptions } from './room/options';
|
|
9
9
|
import { Track } from './track/Track';
|
|
10
10
|
import { RoomEvent } from './events';
|
|
@@ -14,12 +14,12 @@ export type RoomEvents = {
|
|
|
14
14
|
[RoomEvent.Disconnected]: (reason?: DisconnectReason) => void;
|
|
15
15
|
[RoomEvent.Reconnecting]: () => void;
|
|
16
16
|
[RoomEvent.Reconnected]: () => void;
|
|
17
|
-
[RoomEvent.ConnectionStateChanged]: (state:
|
|
17
|
+
[RoomEvent.ConnectionStateChanged]: (state: ConnectionState) => void;
|
|
18
18
|
[RoomEvent.SignalReconnecting]: () => void;
|
|
19
19
|
[RoomEvent.MediaDevicesChanged]: () => void;
|
|
20
20
|
[RoomEvent.MediaDevicesError]: (error: Error) => void;
|
|
21
|
-
[RoomEvent.
|
|
22
|
-
[RoomEvent.
|
|
21
|
+
[RoomEvent.ParticipantConnected]: (participant: RemoteParticipant) => void;
|
|
22
|
+
[RoomEvent.ParticipantDisconnected]: (participant: RemoteParticipant, reason?: DisconnectReason) => void;
|
|
23
23
|
[RoomEvent.ParticipantUpdated]: (participant: RemoteParticipant) => void;
|
|
24
24
|
[RoomEvent.ParticipantMetadataChanged]: (prevMetadata: string | undefined, participant: Participant) => void;
|
|
25
25
|
[RoomEvent.ParticipantNameChanged]: (name: string, participant: Participant) => void;
|
|
@@ -35,11 +35,15 @@ export type RoomEvents = {
|
|
|
35
35
|
[RoomEvent.LocalTrackUnpublished]: (publication: LocalTrackPublication, participant: LocalParticipant) => void;
|
|
36
36
|
[RoomEvent.LocalAudioSilenceDetected]: () => void;
|
|
37
37
|
[RoomEvent.ActiveSpeakersChanged]: (speakers: Participant[]) => void;
|
|
38
|
-
[RoomEvent.
|
|
39
|
-
[RoomEvent.DataReceived]: (
|
|
38
|
+
[RoomEvent.RoomMetadataChanged]: (metadata: string | undefined) => void;
|
|
39
|
+
[RoomEvent.DataReceived]: (payload: Uint8Array, participant?: RemoteParticipant) => void;
|
|
40
40
|
[RoomEvent.ConnectionQualityChanged]: (quality: ConnectionQuality, participant: Participant) => void;
|
|
41
41
|
[RoomEvent.AudioPlaybackStatusChanged]: (canPlayback: boolean) => void;
|
|
42
42
|
[RoomEvent.VideoPlaybackStatusChanged]: (canPlayback: boolean) => void;
|
|
43
|
+
[RoomEvent.SignalConnected]: () => void;
|
|
44
|
+
[RoomEvent.ActiveDeviceChanged]: (kind: MediaDeviceKind, deviceId: string) => void;
|
|
45
|
+
[RoomEvent.RecordingStatusChanged]: (recording: boolean) => void;
|
|
46
|
+
[RoomEvent.ParticipantPermissionsChanged]: (prevPermissions: import('./protocol/types').ParticipantPermission | undefined, participant: Participant) => void;
|
|
43
47
|
[RoomEvent.ChatMessage]: (message: Message, participant?: Participant) => void;
|
|
44
48
|
[RoomEvent.MessageDeleted]: (ids: string[], type?: string) => void;
|
|
45
49
|
[RoomEvent.StateUpdated]: (key: string, value: string, participantSid?: string, participantIdentity?: string) => void;
|
|
@@ -88,7 +92,7 @@ export declare class Room extends TypedEmitter<RoomEvents> {
|
|
|
88
92
|
private _lastMessageTimestamp;
|
|
89
93
|
private _connectOptions;
|
|
90
94
|
constructor(options?: RoomOptions);
|
|
91
|
-
get state():
|
|
95
|
+
get state(): ConnectionState;
|
|
92
96
|
get name(): string;
|
|
93
97
|
get sid(): string;
|
|
94
98
|
get serverInfo(): ServerInfo | undefined;
|
|
@@ -240,6 +244,11 @@ export declare class Room extends TypedEmitter<RoomEvents> {
|
|
|
240
244
|
private applyJoinResponse;
|
|
241
245
|
private registerRPCHandlers;
|
|
242
246
|
private registerNotificationHandlers;
|
|
247
|
+
/**
|
|
248
|
+
* @param emitEvents - When `true` (full reconnect), participant join/leave and
|
|
249
|
+
* track-published events are emitted live for the snapshot diff. When `false`
|
|
250
|
+
* (initial connect), emission is deferred to {@link scheduleReadySnapshotReplay}.
|
|
251
|
+
*/
|
|
243
252
|
private applyReadySnapshot;
|
|
244
253
|
private replaceRemoteParticipants;
|
|
245
254
|
private replaceGroups;
|