mirror of
https://github.com/ragestudio/linebridge.git
synced 2025-06-09 10:34: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 = {}) {
|
constructor(params = {}) {
|
||||||
this.params = params
|
this.params = params
|
||||||
this.manager = new io.Manager(this.params.origin, {
|
this.manager = new io.Manager(this.params.origin, {
|
||||||
@ -41,3 +41,5 @@ module.exports = class WSInterface {
|
|||||||
delete this.sockets[socketName]
|
delete this.sockets[socketName]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
module.exports = WSInterface
|
Loading…
x
Reference in New Issue
Block a user