You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
Another question: if I am in the callback, say OnMessage, can I call methods on dc before I return from it? Eg read the dc.ReadyState(), or call dc.Send() on it?
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?
The text was updated successfully, but these errors were encountered: