3 ms·
Did you go on to read the rest of the section? It seems pretty clear to me that the “maybe” addresses two factors: 1. Whether you use the Streams APIs (suitabl
by eyelidlessness 4y ago
Did you go on to read the rest of the section? It seems pretty clear to me that the “maybe” addresses two factors:
1. Whether you use the Streams APIs (suitable for WebSocket use cases) versus the datagram APIs (not suitable as a general replacement).
2. The standard is relatively new, so the WebSocket ecosystem is currently more mature.
I would be more concerned if the author glossed over those fairly important distinctions to say “yes”.
- strbean 4y agoI think the succinct answer is "Yes, but you probably want to wait for the ecosystem to mature". If you use WebSocket, you are stuck with streams. You can migrate those to WebTransport. Then you also have the option of datagrams if those make sense for you.