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 tokio_proto - Rust
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?
Not under your control but you can pick the protocol. That sounds pretty odd. Nevertheless some web servers are able to listen on a unix domain sockets (like nginx), so websockets can still be used over uds.