How listening to ping in python with websocket #181
Unanswered
wermelingerandre
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello. Trying desperately to listen on a ping from the Binance server, as I need to respond with a pong and sending back the exact payload of the ping with the sent pong. I don't find any help on the web, no example code, and don't know, how to proceed. According to what I think, pings come on OSI layer 3 and have nothing to do with the received message. The standard libraries for websockets (using actually websockets.asyncio.client) can easily send pings, but not listen to pings. This doesn't help, as Binance don't accept neither a ping nor a pong, without the exact payload. My websocket works fine, sometimes for several hours. Until a ping is sent from the Binance server.
Beta Was this translation helpful? Give feedback.
All reactions