@sailfish-ai/recorder 1.0.0-beta-12 → 1.0.0-beta-2
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/recording.js +3 -2
- package/dist/sailfish-recorder.es.js +554 -36
- package/dist/sailfish-recorder.umd.js +554 -36
- package/dist/types/recording.d.ts +1 -1
- package/dist/websocket.js +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { LogRecordOptions } from "@sailfish-rrweb/rrweb-plugin-console-record";
|
|
2
2
|
import { NetworkRecordOptions } from "@sailfish-rrweb/rrweb-plugin-network-record";
|
|
3
|
-
export declare function initializeRecording(captureSettings: any, // TODO - Sibyl
|
|
3
|
+
export declare function initializeRecording(captureSettings: any, // TODO - Sibyl launch - replace type
|
|
4
4
|
consoleRecordSettings: LogRecordOptions, networkRecordSettings: NetworkRecordOptions, backendApi: string, apiKey: string, sessionId: string): Promise<void>;
|
package/dist/websocket.js
CHANGED
|
@@ -5,7 +5,7 @@ export function initializeWebSocket(backendApi, apiKey, sessionId) {
|
|
|
5
5
|
const wsScheme = window.location.protocol === "https:" ? "wss" : "ws";
|
|
6
6
|
const wsUrl = `${wsScheme}://${wsHost}/ws/notify/?apiKey=${apiKey}&sessionId=${sessionId}&sender=JS%2FTS&version=${version}`;
|
|
7
7
|
const options = {
|
|
8
|
-
connectionTimeout:
|
|
8
|
+
connectionTimeout: 5000,
|
|
9
9
|
};
|
|
10
10
|
const webSocket = new ReconnectingWebSocket(wsUrl, [], options);
|
|
11
11
|
// This is done automatically via ReconnectingWebSocket
|