Code Monkey home page Code Monkey logo

Comments (5)

impronunciable avatar impronunciable commented on August 16, 2024

Are you listening for the 'error' event on the stream object?
If twitter is stopping you, the stream object should emit that event with related information.

Other posiblility is that you are not catching some error and the connection ends. I working on streaming api reconection right now.

from tuiter.

Fabryz avatar Fabryz commented on August 16, 2024

Ok, at the moment I don't see any errors on the log. Will need to witness the point where it stops working
As a workaround I was thinking to make a simple watcher-like function that triggers an autorestart of the stream if N minutes passes and no tweets are received

from tuiter.

impronunciable avatar impronunciable commented on August 16, 2024

I used that kind of turnaround in a project. It worked well. I'll ping you
after implementing reconnection.

On Tue, Jun 19, 2012 at 6:43 PM, Fabrizio Codello <
[email protected]

wrote:

Ok, at the moment I don't see any errors on the log. Will need to witness
the point where it stops working
As a workaround I was thinking to make a simple watcher-like function that
triggers an autorestart of the stream if N minutes passes and no tweets are
received


Reply to this email directly or view it on GitHub:
#10 (comment)

Dan Zajdband

from tuiter.

impronunciable avatar impronunciable commented on August 16, 2024

Need to implement this https://github.com/horixon/immortal-ntwitter

from tuiter.

impronunciable avatar impronunciable commented on August 16, 2024

I just implemented automatic reconnection. If you want to help with the debugging, welcome.

from tuiter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.