Twitter v2 api Stream Stop responding after some days

359 Views Asked by At

I am using the Twitter API v2 stream endpoint for listening to some specific events. Though I am facing an unusual problem. My stream stops responding after 2 to 3 days. it doesn't throw any error but i just don't get the data on any event. Any one know what can be the problem. i am using node 17.3.1 and node-twitter-api-v2 node client.

const streamFilter = await clientForStream.v2.getStream();

streamFilter.on(ETwitterStreamEvent.ConnectionError, (err) => console.log('Connection error!', err));
streamFilter.on(ETwitterStreamEvent.Connected, () => console.log('Stream is started.'));
0

There are 0 best solutions below