mirror of
https://github.com/ragestudio/comty.js.git
synced 2025-06-09 02:24:18 +00:00
use linebridge-client 1.0
This commit is contained in:
parent
f051b73e9d
commit
2f3c6ea77f
@ -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"
|
||||
},
|
||||
|
@ -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"),
|
||||
})
|
||||
|
Loading…
x
Reference in New Issue
Block a user