client: fix connectRPCObject always using scrypted cloud

This commit is contained in:
Koushik Dutta
2025-09-22 22:36:49 -07:00
parent 50b312b290
commit c2054fc7e0
3 changed files with 5 additions and 5 deletions

View File

@@ -1,12 +1,12 @@
{
"name": "@scrypted/client",
"version": "1.3.23",
"version": "1.3.24",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "@scrypted/client",
"version": "1.3.23",
"version": "1.3.24",
"license": "ISC",
"dependencies": {
"engine.io-client": "^6.6.3",

View File

@@ -1,6 +1,6 @@
{
"name": "@scrypted/client",
"version": "1.3.23",
"version": "1.3.24",
"description": "",
"main": "dist/packages/client/src/index.js",
"scripts": {

View File

@@ -586,7 +586,7 @@ export async function connectScryptedClient(options: ScryptedClientOptions): Pro
const clusterPeerPromise = (async () => {
const eioPath = 'engine.io/connectRPCObject';
const eioEndpoint = address ? new URL(eioPath, address).pathname : '/' + eioPath;
const eioEndpoint = new URL(eioPath, address).pathname;
const clusterPeerOptions = {
path: eioEndpoint,
query: {
@@ -599,7 +599,7 @@ export async function connectScryptedClient(options: ScryptedClientOptions): Pro
transports: options?.transports,
};
const clusterPeerSocket = new eio.Socket(explicitBaseUrl, clusterPeerOptions);
const clusterPeerSocket = new eio.Socket(address, clusterPeerOptions);
let peerReady = false;
// Timeout handling for dedicated transports