@videosdk.live/react-sdk 0.1.69 → 0.1.71

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.
@@ -0,0 +1,19 @@
1
+ export class Connection {
2
+ /**
3
+ * @deprecated
4
+ */
5
+ id: string;
6
+ /**
7
+ * @deprecated
8
+ */
9
+ payload: string;
10
+ /**
11
+ * @deprecated
12
+ */
13
+ meeting: ConnectionMeeting;
14
+ /**
15
+ * @deprecated
16
+ */
17
+ close(): void;
18
+ }
19
+ import { ConnectionMeeting } from './connectionMeeting';
@@ -0,0 +1,49 @@
1
+ export class ConnectionMeeting {
2
+ /**
3
+ * @deprecated
4
+ */
5
+ id: string;
6
+ /**
7
+ * @deprecated
8
+ */
9
+ participants: Map<string, ConnectionParticipant>;
10
+ /**
11
+ * @deprecated
12
+ * @param peer
13
+ */
14
+ participantJoin(peer: any): void;
15
+ /**
16
+ * @deprecated
17
+ * @param peer
18
+ */
19
+ participantLeft(peerId: any): void;
20
+ /**
21
+ * @deprecated
22
+ */
23
+ sendChatMessage(message: string): void;
24
+ /**
25
+ * @deprecated
26
+ * @param peer
27
+ */
28
+ sendChatMessageEvent({ participantId, message }: { participantId: any; message: any }): void;
29
+ /**
30
+ * @deprecated
31
+ * @param peer
32
+ */
33
+ end(): Promise<void>;
34
+ /**
35
+ * @deprecated
36
+ * Add event listener
37
+ * @param eventType
38
+ * @param listener Callback function
39
+ */
40
+ on(eventType: 'participant-joined' | 'participant-left' | 'chat-message', listener: (data: any) => void): void;
41
+ /**
42
+ * @deprecated
43
+ * Remove event listener
44
+ * @param eventType
45
+ * @param listener Callback function
46
+ */
47
+ off(eventType: 'participant-joined' | 'participant-left' | 'chat-message', listener: (data: any) => void): void;
48
+ }
49
+ import { ConnectionParticipant } from './connectionParticipant';
@@ -0,0 +1,15 @@
1
+ export class ConnectionParticipant {
2
+ /**
3
+ * @deprecated
4
+ */
5
+ id: string;
6
+ /**
7
+ * @deprecated
8
+ */
9
+ displayName: string;
10
+ /**
11
+ * @deprecated
12
+ * @param options
13
+ */
14
+ switchTo({ meetingId, payload, token }: { meetingId: string; payload: string; token: string }): Promise<void>;
15
+ }