diff --git a/src/classes/ClientWSInterface/index.js b/src/classes/ClientWSInterface/index.js index e2e80a8..1d4b71c 100644 --- a/src/classes/ClientWSInterface/index.js +++ b/src/classes/ClientWSInterface/index.js @@ -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] } -} \ No newline at end of file +} + +module.exports = WSInterface \ No newline at end of file