@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.
@@ -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: (sessionId: string) => void) => void;
95
- onJoinSession: (sessionId: string) => void;
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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deeptrekker/api-channels",
3
- "version": "0.2.0",
3
+ "version": "0.4.0",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",