html5rocks / www.html5rocks.com

....a top-notch resource for web developers
https://html5rocks.com
Other
2.22k stars 769 forks source link

Update Data Channel Tutorial #1484

Closed lgrahl closed 6 years ago

lgrahl commented 6 years ago

Partial Reliability

Reliable implied ordered and unreliable implied unordered which is not the case for data channels.

maxRetransmitTime has been renamed to maxPacketLifeTime.

Protocol

Allows a subprotocol to be used, but will fail if the specified protocol is unsupported

This is true for web sockets but not for data channels.

Chunking Size

64 KiB are now safe since Firefox 57.

I'll add another PR for further changes regarding chunking later.


You may also need to update the examples. I haven't looked at them. :)

fippo commented 6 years ago

@samdutton I can vouch for @lgrahl :-)

lgrahl commented 6 years ago

:man_shrugging:

samdutton commented 6 years ago

Thanks so much for doing this — and apologies for the delay in responding.

LGTM apart from nit about use of ampersands.

If you could fix that, I'll merge.