mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-08 03:20:12 +08:00
feat: push discover event to frontend
This commit is contained in:
1 parent
c0186c6a30
commit
096b7a7714
5 files changed
+33
-3
No files matched your search
@@ -72,6 +72,11 @@ async function connect(sessionId) {
|
||||
stdout.write(data)
|
||||
})
|
||||
|
||||
socket.on('graph', (data) => {
|
||||
console.log('receive graph:')
|
||||
console.log(data)
|
||||
})
|
||||
|
||||
socket.on('close', function close() {
|
||||
console.log('Disconnected from the server.')
|
||||
exit()
|
||||
|
||||
Reference in new issue
Block a user