I’m looking at implementing a client for a websocket-like protocol with Tokio, and I wonder if I have to roll my own protocol or if I can build on top of the ones from https://docs.rs/tokio-proto/0.1.1/tokio_proto/index.html
The protocol works as follows:
- The client can “fire and forget” requests. Some will have matching responses, some not.
- The server will push unsolicited packets to the client, similar to push notifications.
My understanding is that the tokio-proto protocols are very much bound to a request/response model and thus not applicable for me. Am I right?