@deeptrekker/api-channels 0.3.0 → 0.4.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/index.es.js +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/types/index.d.ts +4 -2
- package/package.json +1 -1
package/dist/types/index.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ import { HubConnection, LogLevel } from "@microsoft/signalr";
|
|
|
7
7
|
*/
|
|
8
8
|
export type AnswerEvent = {
|
|
9
9
|
sdp: RTCSessionDescription;
|
|
10
|
+
caller: string;
|
|
10
11
|
};
|
|
11
12
|
/**
|
|
12
13
|
* Client
|
|
@@ -91,11 +92,12 @@ export interface ConnectionSettings {
|
|
|
91
92
|
export interface WebRtcOptions {
|
|
92
93
|
onDataChannel: (dataChannel: RTCDataChannelEvent) => void;
|
|
93
94
|
onTrackEvent: (trackEvent: RTCVideoTrackInfo) => void;
|
|
94
|
-
onSessionList: (sessionList: SessionInfo[], callback: (
|
|
95
|
-
onJoinSession: (
|
|
95
|
+
onSessionList: (sessionList: SessionInfo[], callback: (session: SessionInfo) => void) => void;
|
|
96
|
+
onJoinSession: (session: SessionInfo) => void;
|
|
96
97
|
onSessionClose: () => void;
|
|
97
98
|
onConnectionStateChange: (event: Event) => void;
|
|
98
99
|
onError: (reason: unknown) => void;
|
|
100
|
+
onSessionInfo: (session: SessionInfo, call: (session: SessionInfo, connectionId: string) => void) => string | undefined;
|
|
99
101
|
}
|
|
100
102
|
export interface ConfigProperties {
|
|
101
103
|
connectionTimeout?: number;
|