Replies: 1 comment 1 reply
-
Hi! That sounds indeed reasonable. I think the only downside is that It shouldn't be that hard to implement: if the packet is marked as volatile, we use the datagrams stream ( Server: Client: |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Guarantees of actual delivery and order are core to the library's design, making it incompatible with a datagram approach.
However, with the introduction of WebTransport, specifically its unreliable datagrams, I believe there's a compelling case for reconsideration.
The existing io.volatile.emit() functionality in Socket.IO already signals an intent to send data without certain delivery guarantees.
It seems like WebTransport's datagrams would be a perfect fit for this particular use case, offering a more native and potentially optimized way to achieve that "fire-and-forget" behavior.
Would it make sense to explore how WebTransport datagrams could enhance or integrate with the existing volatile emission strategy?
Reference:
#5001 (reply in thread)
Beta Was this translation helpful? Give feedback.
All reactions