Websocket keep alive

Hi guyes,

How many hours the websocket is keep alive ?

Thank you

Thank you …

so … i need to create a auto-reconnect … thank you man

https://binance-docs.github.io/apidocs/spot/en/#websocket-market-streams

According to the documentation, single connection to stream.binance.com is only valid for 24 hours; expect to be disconnected at the 24 hour mark

Thank you Chai …

I saw this documentation but I have a connection greater than 74h and keep

A connection may live longer than the 24 hour mark, however Binance cannot guarantee it. Therefore, the official lifetime of a connection is 24 hours.

A longer lifetime is possible but not guaranteed.