Skip to content

Commit 64a62a6

Browse files
dmitrizleo
authored andcommitted
Move the hint message to the callback
1 parent 60d33d9 commit 64a62a6

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

examples/socket.io-chat-app/index.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,4 @@ const io = require('socket.io')(server);
1515
// socket-io handlers are in websocket-server.js
1616
require('./websocket-server.js')(io);
1717

18-
console.log('Listening on localhost:4000');
19-
server.listen(4000);
18+
server.listen(4000, () => console.log('Listening on localhost:4000'));

0 commit comments

Comments
 (0)