How to: Protobuf + Python + Websocket (client side) ?

621 views
Skip to first unread message

Gabriel Mercier

unread,
Jul 30, 2019, 1:45:41 PM7/30/19
to Protocol Buffers
Dear brains,

Currently, I am trying to communicate with a websocket API, which is language independant (using protocol buffers).

Using protoc, I've been able to generate a _pb2.py file from a .proto file. Now, I have totally no idea about what I am supposed to do with this .py file in order to send a message to the server.
It sounds like I must encode/decode it before sending it to the server, but all these terms sounds like Chinese to me. 

Concretely, what am I supposed to do in order to communicate with the server, from my python generated file?

Regards
Reply all
Reply to author
Forward
0 new messages