mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-06 03:20:13 +08:00
Success to execute and show output using Websocket
This commit is contained in:
1 parent
f17c2a9ef5
commit
69ef435b77
3 files changed
+19
-21
No files matched your search
+1
-1
@@ -14,7 +14,7 @@ socket.on('open', function open() {
|
||||
})
|
||||
|
||||
socket.on('message', function incoming(data) {
|
||||
console.log(`From server: ${data}`)
|
||||
console.log(`${data}`)
|
||||
})
|
||||
|
||||
socket.on('close', function close() {
|
||||
|
||||
Reference in new issue
Block a user