Comments (4)
I haven't had a need. I'm open for patches though.
from twitter-node.
I'd gladly do so, but any idea how this could be tested ?
long story short : I started logging the activity on some keywords and my app crashed after 20 hours. Fiddled and try to add some reconnect after a couple of seconds… Crashed after 24 hours or so without reconnecting. Anyways, the thing is : I obviously can't afford to wait a day or so until a crash to see if my handling of a disconnect is working… Of course, I could switch on/off my laptop's wifi, but then again, just wondering if you had any ideas of a more… elegant way of dealing with it.
from twitter-node.
What's causing the crashes? If it's just a loss of connection between Twitter and your script, write a stupid simple node server that emits random json, and run local tests with it dying.
I've talked to some people that ran into this, and they just had some code that would immediately catch and reopen the connection. I switched jobs after writing this, and have no real use for it anymore. All I can suggest is try some stuff out in a personal fork, and submit a pull request to get some in the community to look at it. If it works, I'll gladly take the patch.
Also, try and be polite to Twitter's servers: http://dev.twitter.com/pages/user_streams_suggestions#Failure :)
from twitter-node.
I've submitted a patch for this issue. Please let me know if you have any questions.
from twitter-node.
Related Issues (19)
- Error: process.mixin() has been removed. HOT 4
- install fails
- Error: Cannot find module 'twitter-node' HOT 1
- Updating filter should follow Twitter's predicates HOT 1
- what should i do when a twitter-node disconnects from the firehose? HOT 1
- HTTPS required now HOT 2
- Error: ECONNREFUSED, Connection refused HOT 3
- Connection refused HOT 7
- TypeError: Object #<Object> has no method 'createClient' after npm update HOT 3
- example code needs sys HOT 1
- npm package HOT 4
- calling twit.stream(); from within a function gives a connection refusal HOT 2
- Multiple instance issue
- example throws errors HOT 1
- .end() isn't always called on previous stream when .stream() is called HOT 2
- EPIPE when following lots of users
- npm install fails HOT 2
- unable to install twitter-node HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from twitter-node.