How to send ping/pong to Binance websocket Server

  • Binance Websocket Server sends ping frame to client every 3 minutes. If no pong frame returned back from client in 10 minutes, the server will disconnect the connection.
  • Client can send ping message to Websocket server, the server will return pong as response. This is useful for client to actively validate if the connection is alive.