I am simply doing something like this:
*var stream = T.stream('statuses/filter', { track: watchList })*
* stream.on('tweet', function (tweet) {*
* io.sockets.emit('stream',tweet.text);*
* });*
* });*
*I am using this for as the Twitter API client (Twit
<https://www.npmjs.com/package/twit-old>) *
Everything works fine and I am also able to see watch the stream of tweets
for the track words which I provide in *watchList. *But if I refresh the
page, a new connection is established again without terminating the old
connection. For that reason, the tweets are getting duplicated.
* How do I stop this from happening?Or how can I check whether a connection
is already established? Thank You,Aryak*
--
Job board: http://jobs.nodejs.org/
New group rules:
https://gist.github.com/othiym23/9886289#file-moderation-policy-md
Old group rules:
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
---
You received this message because you are subscribed to the Google Groups
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/nodejs/CALTbq1ym7EU2YK4JkpNb2aeq8SLMALCMnO-Qh0gHQUwTVw7hOw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.