Browse Source

msg size limits notes

golang
forest 2 weeks ago
parent
commit
79dd79f139
2 changed files with 10 additions and 1 deletions
  1. +9
    -1
      ReadMe.md
  2. +1
    -0
      main.go

+ 9
- 1
ReadMe.md View File

@ -108,4 +108,12 @@ There is the IceRestart constraint which might help. Apparently you can save the
https://stackoverflow.com/questions/40363606/how-to-keep-webrtc-datachannel-open-in-phone-browser-inactive-tab
https://stackoverflow.com/questions/40363606/how-to-keep-webrtc-datachannel-open-in-phone-browser-inactive-tab
datachannel message size limits
https://lgrahl.de/articles/demystifying-webrtc-dc-size-limit.html
https://viblast.com/blog/2015/2/5/webrtc-data-channel-message-size/

+ 1
- 0
main.go View File

@ -88,6 +88,7 @@ func websocketServer(ws *websocket.Conn) { // nolint:gocognit
return
}
// TODO: can the client simply retry the connection instead??
time.Sleep(time.Millisecond * 500)
if _, err = ws.Write(outbound); err != nil {


Loading…
Cancel
Save