use require instead import

This commit is contained in:
srgooglo 2022-05-06 14:16:54 +02:00
parent 5235d2fad3
commit 2fa4d5fb9d

View File

@ -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, {
@ -40,4 +40,6 @@ module.exports = class WSInterface {
delete this.sockets[socketName] delete this.sockets[socketName]
} }
} }
module.exports = WSInterface