I’ve read the documentation and know that websockets automatically manages ping-pong. However, exchanges like Bybit require custom ping-pong messages, as shown in the image below.
How can I implement that? I know I can using websocket.send(), but is there any way to custome the message and let websockets to handle it automatically?
I’ve read the documentation and know that
websockets
automatically managesping-pong
. However, exchanges like Bybit require custom ping-pong messages, as shown in the image below.How can I implement that? I know I can using
websocket.send()
, but is there any way to custome the message and let websockets to handle it automatically?