Skip to content

Commit bc27c49

Browse files
committed
Server port 8000
1 parent 59a1e05 commit bc27c49

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

JavaScript/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ <h1>Live table</h1>
88
</style>
99
<script>
1010

11-
const socket = new WebSocket('ws://127.0.0.1/');
11+
const socket = new WebSocket('ws://127.0.0.1:8000/');
1212

1313
const table = document.getElementById('table');
1414
const cells = {};

JavaScript/server.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ const server = http.createServer((req, res) => {
1111
res.end(index);
1212
});
1313

14-
server.listen(80, () => {
15-
console.log('Listen port 80');
14+
server.listen(8000, () => {
15+
console.log('Listen port 8000');
1616
});
1717

1818
const ws = new Websocket({

0 commit comments

Comments
 (0)