Update Server
- Move socket server start to main server file - This way tests and the main function can use the same code
This commit is contained in:
@@ -30,9 +30,4 @@ nodeIo.on('connection', (socket) => {
|
||||
nodeDisconnectWrapper(socket.id);
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
// Startup the node server
|
||||
server.listen(3000, () => {
|
||||
console.log('server running at http://localhost:3000');
|
||||
});
|
||||
Reference in New Issue
Block a user