@deeptrekker/api-channels 0.3.0 → 0.5.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.
@@ -7,5 +7,6 @@ import { ConfigProperties, ConnectionSettings } from "@types";
7
7
  * @param onConnectionSuccess The callback provided that returns the connected {@link HubConnection}
8
8
  * @param connectionSettings {@link ConnectionSettings} The provided connection settings used to determine what signaling server to connect other similar settings
9
9
  * @returns void
10
+ *
10
11
  */
11
12
  export declare const connectToServer: (onConnectionSuccess: (socket: HubConnection) => void, connectionSettings: ConnectionSettings, configProperties: ConfigProperties) => Promise<void>;
@@ -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: (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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deeptrekker/api-channels",
3
- "version": "0.3.0",
3
+ "version": "0.5.0",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -14,7 +14,7 @@
14
14
  "build": "rollup -c"
15
15
  },
16
16
  "dependencies": {
17
- "@microsoft/signalr": "^7.0.3",
17
+ "@microsoft/signalr": "^8.0.0",
18
18
  "@types/sdp-transform": "^2.4.6",
19
19
  "lodash": "^4.17.21",
20
20
  "sdp-transform": "^2.14.1"