Move server back to index.js

This commit is contained in:
wancat committed 2023-07-15 15:43:13 +08:00
1 parent de637f3cf6
commit 45a0aa6249
5 files changed
+38 -38

No files matched your search

+1 -1
View File
@@ -5,7 +5,7 @@ stdin.setRawMode(true)
stdin.resume()
stdin.setEncoding('utf8')
const socket = io('ws://localhost:8080')
const socket = io('ws://localhost:3000')
socket.on('open', function open() {
console.log('Connected to the server.')