@scrypted/client
Advanced tools
Comparing version 1.1.19 to 1.1.20
{ | ||
"name": "@scrypted/client", | ||
"version": "1.1.19", | ||
"version": "1.1.20", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "dist/packages/client/src/index.js", |
@@ -32,2 +32,3 @@ import { ScryptedStatic, RTCConnectionManagement } from "@scrypted/types"; | ||
clientName?: string; | ||
transports?: string[]; | ||
} | ||
@@ -34,0 +35,0 @@ export declare function logoutScryptedClient(baseUrl?: string): Promise<any>; |
@@ -178,2 +178,3 @@ "use strict"; | ||
rejectUnauthorized: false, | ||
transports: options?.transports, | ||
}; | ||
@@ -192,2 +193,3 @@ const explicitBaseUrl = baseUrl || `${globalThis.location.protocol}//${globalThis.location.host}`; | ||
rejectUnauthorized: false, | ||
transports: options?.transports, | ||
}; | ||
@@ -226,2 +228,3 @@ let sockets = []; | ||
rejectUnauthorized: false, | ||
transports: options?.transports, | ||
}; | ||
@@ -228,0 +231,0 @@ const check = new eio.Socket(explicitBaseUrl, webrtcEioOptions); |
@@ -335,2 +335,7 @@ "use strict"; | ||
async function setupPluginRemote(peer, api, pluginId, getSystemState) { | ||
const start = Date.now(); | ||
const timeLog = (name) => { | ||
console.log(name, Date.now() - start); | ||
}; | ||
timeLog('start'); | ||
try { | ||
@@ -344,4 +349,7 @@ // the host/remote connection can be from server to plugin (node to node), | ||
const getRemote = await peer.getParam('getRemote'); | ||
timeLog('getRemote'); | ||
const remote = await getRemote(api, pluginId); | ||
timeLog('getRemote2'); | ||
await remote.setSystemState(getSystemState()); | ||
timeLog('setSystemState'); | ||
api.listen((id, eventDetails, eventData) => { | ||
@@ -348,0 +356,0 @@ // ScryptedDevice events will be handled specially and repropagated by the remote. |
{ | ||
"name": "@scrypted/client", | ||
"version": "1.1.19", | ||
"version": "1.1.20", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "dist/packages/client/src/index.js", |
@@ -69,2 +69,3 @@ import { ScryptedStatic, RTCConnectionManagement, RTCSignalingSession } from "@scrypted/types"; | ||
clientName?: string; | ||
transports?: string[]; | ||
} | ||
@@ -202,2 +203,3 @@ | ||
rejectUnauthorized: false, | ||
transports: options?.transports, | ||
}; | ||
@@ -219,2 +221,3 @@ | ||
rejectUnauthorized: false, | ||
transports: options?.transports, | ||
}; | ||
@@ -258,2 +261,3 @@ | ||
rejectUnauthorized: false, | ||
transports: options?.transports, | ||
}; | ||
@@ -260,0 +264,0 @@ const check = new eio.Socket(explicitBaseUrl, webrtcEioOptions); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
353211
3720