mirror of
https://github.com/GNS3/gns3-server
synced 2024-12-25 16:28:11 +00:00
Merge pull request #1933 from akrpic77/ak-fix-binary-websocket
Fix binary websocket access to the console
This commit is contained in:
commit
d2534d6fa0
@ -430,7 +430,7 @@ class BaseNode:
|
|||||||
telnet_writer.write(msg.data.encode())
|
telnet_writer.write(msg.data.encode())
|
||||||
await telnet_writer.drain()
|
await telnet_writer.drain()
|
||||||
elif msg.type == aiohttp.WSMsgType.BINARY:
|
elif msg.type == aiohttp.WSMsgType.BINARY:
|
||||||
await telnet_writer.write(msg.data)
|
telnet_writer.write(msg.data)
|
||||||
await telnet_writer.drain()
|
await telnet_writer.drain()
|
||||||
elif msg.type == aiohttp.WSMsgType.ERROR:
|
elif msg.type == aiohttp.WSMsgType.ERROR:
|
||||||
log.debug("Websocket connection closed with exception {}".format(ws.exception()))
|
log.debug("Websocket connection closed with exception {}".format(ws.exception()))
|
||||||
|
Loading…
Reference in New Issue
Block a user