Support for WebSocket consoles

This commit is contained in:
grossmj
2020-01-31 17:31:27 +08:00
parent 39d44c8480
commit c313475f68
10 changed files with 207 additions and 4 deletions

View File

@ -253,10 +253,11 @@ class Route(object):
"""
To avoid strange effect we prevent concurrency
between the same instance of the node
(excepting when streaming a PCAP file).
(excepting when streaming a PCAP file and WebSocket consoles).
"""
if "node_id" in request.match_info and not "pcap" in request.path:
#FIXME: ugly exceptions for capture and websocket console
if "node_id" in request.match_info and not "pcap" in request.path and not "ws" in request.path:
node_id = request.match_info.get("node_id")
if "compute" in request.path: