server for my chess game
Diffstat (limited to 'src/index.js')
| -rw-r--r-- | src/index.js | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/index.js b/src/index.js index 3805116..f614c13 100644 --- a/src/index.js +++ b/src/index.js @@ -1,8 +1,7 @@ -import ws from "ws"; -const { Server } = ws; +import { WebSocketServer } from "ws"; const PORT = process.env.PORT || 3000; -const wss = new Server({ port: PORT }); // init server asap +const wss = new WebSocketServer({ port: PORT }); // init server asap import utils from "@gd-com/utils"; const { putVar, getVar } = utils; |