-
Notifications
You must be signed in to change notification settings - Fork 31
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
My suggestions for APIs #1
Comments
Hi, thank you for your feedback! I could definitely add a way to retrieve the stream ID from the "handlers". Of course, streams already carry their ID, so I would be just a matter of provide a public accessor to it. Please consider the public interface over the streams is still lacking of some functionalities: for now, I've only added basic methods for reading and writing in order to make it operable. I am not quite sure I got what you mean with:
can you please provide me with more information or maybe an example? |
I would like to design the API to be similar to WebSocket with "onStream" and "onDatagram" events, exposing a simple API to developers. Additionally, it seems that your receiving method does not currently support datagram-based communication. |
If you can further improve it, I believe your project can have a greater impact than QUIC or NEQO. |
Starting support: #3 😄 |
I'm glad that you are able to enable the datagram functionality, and it's already a great success that the onStream method is triggered only once for the same stream. I believe your project will become a mainstream project for webTransport in the future. |
I have a suggestion that the same stream should only be triggered once, and then the data transmitted through the stream will pass through OnStreamData. It is also recommended that each stream carry a streamId.
The text was updated successfully, but these errors were encountered: