summaryrefslogtreecommitdiff
path: root/app/lib/socket.js
diff options
context:
space:
mode:
Diffstat (limited to 'app/lib/socket.js')
-rw-r--r--app/lib/socket.js6
1 files changed, 2 insertions, 4 deletions
diff --git a/app/lib/socket.js b/app/lib/socket.js
index 88fdd49..9222d00 100644
--- a/app/lib/socket.js
+++ b/app/lib/socket.js
@@ -1,6 +1,4 @@
-"use strict";
-
-const WebSocket = require("ws");
+import WebSocket from "ws";
class Client {
constructor(ws) {
@@ -27,7 +25,7 @@ class Client {
}
}
-module.exports = class Socket {
+export default class Socket {
constructor(server) {
this.wss = new WebSocket.Server({server});
this.handlers = {};