ttezel/twit — pull request #19 by drewish (2012-10-02 20:06:46+00:00)
Title: Handle disconnect messages

I was trying to stream status/filter and was getting busted "tweets" coming through:

{ disconnect:
{ code: 7,
stream_name: 'dfurnes-statuses936291',
reason: 'admin logout' } }

Turned out I had another client connected on that same account so it was rejecting the second one though in a sort of undocumented manner. It seems like we should pass those back as error events... though it might make sense to just emit("stop") if we get those to shut ourselves down... I really don't know what the best solution would be so I'm just submitting this to start the conversation.