How to manage disconnected state ?
Expected behavior
I created some rules (very specific, I don't receive a lot of tweets, maybe 1-5 per hour) and listening to the stream with client.tweets.searchStream()
Actual behavior
After getting some tweets, I get an error (few hours later):
{"title":"operational-disconnect","disconnect_type":"OperationalDisconnect","detail":"This stream has been disconnected for operational reasons.","type":"https://api.twitter.com/2/problems/operational-disconnect"}
It seems that the stream is now stuck. How should I restart the stream / connection ?