ValvePython / steam

☁️ Python package for interacting with Steam
http://steam.readthedocs.io
MIT License
1.1k stars 137 forks source link

bytes to text from multi #301

Closed ghost closed 3 years ago

ghost commented 3 years ago

How do I convert the bytes I receive to string, for example from steam.enums.emsg.EMsg.Multi response?

rossengeorgiev commented 3 years ago

You don't have to. It is all done for you. Multi is just encapsulation when receiving multiple messages, and its handled automatically. Nearly all messages are protobufs, so finding the correct proto and using it to de-serialize the message body.

What are you trying to do exactly?

ghost commented 3 years ago

Just want to see what I receive. How do I split the multiple messages from Multi object?

rossengeorgiev commented 3 years ago

Just configure logging and enable SteamClient.verbose_debug. That will log all the traffic.