use linebridge-client 1.0

This commit is contained in:
SrGooglo 2025-03-26 15:40:03 +00:00
parent f051b73e9d
commit 2f3c6ea77f
2 changed files with 5 additions and 4 deletions

View File

@ -1,6 +1,6 @@
{
"name": "comty.js",
"version": "0.61.1",
"version": "0.62.0",
"main": "./dist/index.js",
"author": "RageStudio <support@ragestudio.net>",
"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"
},

View File

@ -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"),
})