Websocket autoclosing

after i run my app, i receive this log:
[
‘Pong timeout - closing socket to reconnect’,
{ category: ‘binance-ws’, wsKey: ‘spot_kline_solusdt_5m’ }
]

what is the problem ?

Hi,

Please make sure you are following the connection lifetime policy and the ping/pong framework mentioned in the documentation.

  • A single connection to stream.binance.com is only valid for 24 hours; expect to be disconnected at the 24 hour mark
  • The websocket server will send a ping frame every 3 minutes. If the websocket server does not receive a pong frame back from the connection within a 10 minute period, the connection will be disconnected. Unsolicited pong frames are allowed