I'm looking for some guidance or pointers. Let me first start by saying I have a very basic understanding of Rust and would consider myself a novice (maybe I'm just in over my head). The project I'm working on connects to a websocket server using ws-rs and I would like to decode the ws::Message with prost::Message. I have successfully generated all the protocols from the *.proto files but I'm failing to understand how I would go about decoding the messages.
Both I guess... In the on_message function it's a binary ws::Message so it's unclear to me how I know which prost::Message to decode it into. I've tried looking through the prost test source and I found an example they called RoundTrip but it's explicitly defining the prost Message.
How does the Starcraft protocol work? What does it send you on connect, if anything? Prost will expect you to know what type of message you're going to deserialize which means you'll need to know how the protocol works and what/when messages are exchanged.
Oh Ok that didn't even cross my mind - I'm thinking all the responses from StartCraft are Response. So I'm guessing I'll need to use that to decode the ws binary into a prost message.