Skip to content

backpressure and webrtc.DataChannel.OnMessage #45

@amitu

Description

@amitu

How long should a handler attached to webrtc.DataChannel.OnMessage be allowed to take?

If I understand correctly, data channel buffer is drained after OnMessage is returned, so if I am reading from data channel and writing to a slow io.Writer(), I would prefer to block on io.Writer() from my OnMessage handler, but is it advisable for OnMessage to block?

Would it affect other data channels if we have more than one?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions