Skip to content

Collaborative WebRTC disconnects with big enough update #598

Closed
@datakurre

Description

@datakurre

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'

webrtc-disconnects

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions