@deeptrekker/api-channels 0.2.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/constants/index.d.ts +2 -0
- 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 +6 -3
- package/package.json +1 -1
package/dist/types/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { HubConnection } from "@microsoft/signalr";
|
|
1
|
+
import { HubConnection, LogLevel } from "@microsoft/signalr";
|
|
2
2
|
/**
|
|
3
3
|
* Answer Event
|
|
4
4
|
*
|
|
@@ -7,6 +7,7 @@ import { HubConnection } 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;
|
|
@@ -104,6 +106,7 @@ export interface ConfigProperties {
|
|
|
104
106
|
defaultAddress?: string;
|
|
105
107
|
defaultConnectionString?: string;
|
|
106
108
|
clientId?: string;
|
|
109
|
+
socketLogging?: LogLevel;
|
|
107
110
|
}
|
|
108
111
|
export type RTCVideoTrackInfo = {
|
|
109
112
|
trackEvent: RTCTrackEvent;
|