Skip to content

Commit

Permalink
Update server.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Kammura-too authored May 26, 2024
1 parent eeb9700 commit 6bbefe2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion server.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ const io = socketIo(server);

const port = process.env.PORT || 8080;

console.log(`Starting server on port ${port}`); // Add this line

io.on('connection', (socket) => {
console.log('a user connected');
socket.on('disconnect', () => {
Expand All @@ -23,4 +25,3 @@ io.on('connection', (socket) => {
server.listen(port, '0.0.0.0', () => {
console.log(`Server is running on http://0.0.0.0:${port}`);
});

0 comments on commit 6bbefe2

Please sign in to comment.