Closed
Description
Description
Collaborative WebRTC silently disconnects with too big display data being transferred.
Reproduce
from IPython.display import display
payload = "a" * 1024 * 256
display({"text/html": f"OK<!--{payload}-->"}, raw=True)
y-webrtc logging enabled with
// enable logging for all modules
localStorage.log = 'true'
Expected behavior
WebRTC would not disconnect silently. Either support large payloads or gracefully degrades.
Context
RobotKernel injects execution logs into notebook by displaying HTML links with large inline data URIs. Not beautiful, but has been working too well so far:
https://robotkernel.readthedocs.io/en/latest/_/lab/index.html?path=Example.ipynb&room=demo
/cc @bollwyvl