mirror of
https://github.com/Links2004/arduinoWebSockets.git
synced 2025-07-29 15:17:13 +02:00
Update index.js
fix port
This commit is contained in:
@ -7,7 +7,7 @@ var server = http.createServer(function(request, response) {
|
|||||||
response.writeHead(404);
|
response.writeHead(404);
|
||||||
response.end();
|
response.end();
|
||||||
});
|
});
|
||||||
server.listen(81, function() {
|
server.listen(8011, function() {
|
||||||
console.log((new Date()) + ' Server is listening on port 8011');
|
console.log((new Date()) + ' Server is listening on port 8011');
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -54,4 +54,4 @@ wsServer.on('request', function(request) {
|
|||||||
});
|
});
|
||||||
|
|
||||||
connection.sendUTF("Hallo Client!");
|
connection.sendUTF("Hallo Client!");
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user