Skip to content

Commit

Permalink
Removed callback
Browse files Browse the repository at this point in the history
  • Loading branch information
alexcambose committed Nov 27, 2020
1 parent 49d9055 commit 3a04d0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const httpServer = http.createServer(app);

const PORT = process.env.PORT || 3000;

const wsServer = new WebSocket.Server({ server: httpServer }, () => console.log(`WS server is listening at ws://localhost:${WS_PORT}`));
const wsServer = new WebSocket.Server({ server: httpServer });

// array of connected websocket clients
let connectedClients = [];
Expand Down

0 comments on commit 3a04d0a

Please sign in to comment.