mirror of
https://github.com/ragestudio/linebridge.git
synced 2025-06-09 02:24:17 +00:00
use require instead import
This commit is contained in:
parent
5235d2fad3
commit
2fa4d5fb9d
@ -1,6 +1,6 @@
|
||||
import io from "socket.io-client"
|
||||
const io = require("socket.io-client")
|
||||
|
||||
module.exports = class WSInterface {
|
||||
class WSInterface {
|
||||
constructor(params = {}) {
|
||||
this.params = params
|
||||
this.manager = new io.Manager(this.params.origin, {
|
||||
@ -40,4 +40,6 @@ module.exports = class WSInterface {
|
||||
|
||||
delete this.sockets[socketName]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = WSInterface
|
Loading…
x
Reference in New Issue
Block a user