Kano001 commited on
Commit
4ed4457
1 Parent(s): ff4613e

Update server.js

Browse files
Files changed (1) hide show
  1. server.js +2 -2
server.js CHANGED
@@ -1,7 +1,7 @@
1
  const WebSocket = require('ws');
2
 
3
  // Create a WebSocket server listening on port 8080
4
- const wss = new WebSocket.Server({ port: 8080 });
5
 
6
  // Event listener for new connections
7
  wss.on('connection', (ws) => {
@@ -24,4 +24,4 @@ wss.on('connection', (ws) => {
24
  });
25
  });
26
 
27
- console.log('WebSocket server is running on ws://localhost:8080');
 
1
  const WebSocket = require('ws');
2
 
3
  // Create a WebSocket server listening on port 8080
4
+ const wss = new WebSocket.Server({ port: 7860 });
5
 
6
  // Event listener for new connections
7
  wss.on('connection', (ws) => {
 
24
  });
25
  });
26
 
27
+ console.log('WebSocket server is running on ws://localhost:7860');