mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-03 14:01:15 +02:00
The controller has a streaming API
Now we need to link the hypervisor to the controller.
This commit is contained in:
9 files changed
+255
-53
No files matched your search
@@ -35,6 +35,9 @@ class NotificationHandler:
|
||||
|
||||
with notifications.queue() as queue:
|
||||
while True:
|
||||
notif = yield from queue.get_json(5)
|
||||
try:
|
||||
notif = yield from queue.get_json(5)
|
||||
except asyncio.futures.CancelledError as e:
|
||||
break
|
||||
ws.send_str(notif)
|
||||
return ws
|
||||
Reference in new issue
Block a user