-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Replace sendDatagrams()/receiveDatagrams() methods with attributes? #54
Comments
Currently it appears that the transport will ignore any incoming datagrams until receiveDatagrams() is called. That would change if you replaced it with an attribute. However, it's not clear this facility is useful anyway. |
it seems natural that but current spec,
if thease behave like a getter or creator, their name should be |
Is this still correct? Currently Reg: naming how about |
I think |
@pthatcherg sendDatagrams()/receiveDatagrams() predated the switch to WHATWG Streams, and they no longer make sense. Better alignment between WebSocketStreams API and WebTransport (particularly if WebSocketStreams will also support QUIC datagrams) is also a good thing. |
Was there as good reason for having them be methods? I can't remember any good reason. It might be nice to match WebSocketConnection which has .readable and .writable.
But in that case we might want .datagrams.readable and .datagrams.writable instead of .receivedDatagrams and .datagramsToSend (or similar).
The text was updated successfully, but these errors were encountered: