Update server.js
Browse files
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:
|
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:
|
|
|
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');
|