We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 99e4f9a commit 8fd0fd0Copy full SHA for 8fd0fd0
interpreter/core/async_core.py
@@ -279,8 +279,11 @@ async def receive_input():
279
280
print("Received:", data)
281
282
- if data.get("type") == "websocket.receive" and "text" in data:
283
- data = json.loads(data["text"])
+ if data.get("type") == "websocket.receive":
+ if "text" in data:
284
+ data = json.loads(data["text"])
285
+ elif "bytes" in data:
286
+ data = data["bytes"]
287
await async_interpreter.input(data)
288
elif data.get("type") == "websocket.disconnect":
289
print("Disconnecting.")
0 commit comments