From 2f3c6ea77fc1f61d25f623c66f5608dfcaceefc3 Mon Sep 17 00:00:00 2001 From: SrGooglo Date: Wed, 26 Mar 2025 15:40:03 +0000 Subject: [PATCH] use linebridge-client 1.0 --- package.json | 4 ++-- src/ws.js | 5 +++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 0c46559..ea1c7aa 100755 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "comty.js", - "version": "0.61.1", + "version": "0.62.0", "main": "./dist/index.js", "author": "RageStudio ", "scripts": { @@ -16,7 +16,7 @@ "js-cookie": "^3.0.5", "jsonwebtoken": "^9.0.0", "jwt-decode": "^4.0.0", - "linebridge-client": "^0.2.0", + "linebridge-client": "^1.0.0", "luxon": "^3.6.0", "socket.io-client": "^4.8.1" }, diff --git a/src/ws.js b/src/ws.js index 5a59ada..48c558b 100644 --- a/src/ws.js +++ b/src/ws.js @@ -2,8 +2,8 @@ import Remotes from "./remotes" import Storage from "./helpers/withStorage" import { io } from "socket.io-client" -//import { RTEngineClient } from "linebridge-client" -import { RTEngineClient } from "../../linebridge/client/src" +import { RTEngineClient } from "linebridge-client/src" +//import { RTEngineClient } from "../../linebridge/client/src" class WebsocketManager { sockets = new Map() @@ -56,6 +56,7 @@ class WebsocketManager { ) const client = new RTEngineClient({ + refName: remote.namespace, url: `${Remotes.origin}/${remote.namespace}`, token: Storage.engine.get("token"), })