Refactor message handling in TwythonStreamer #225
No reviewers
Labels
No labels
Bug
Enhancement
Feature Suggestion
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: code/twython#225
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "master"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
New parameter
handlershas a list of message types for whichcorresponding handlers should be called. For example, for default message types
['delete', 'limit', 'disconnect'] handlers on_delete, on_limit,
on_disconnect will be invoked if the streamed message has the
corresponding data node. If the handler returns True then more handlers
might be invoked, otherwise message processing stops. Before all
handlers are called, special on_success handler is invoked with the same
logic: continue message processing if True is returned.
This approach maintains backwards compatibility by not breaking any
existing behaviors. Fixes #223.
I think that failed Travis build is caused by bad twitter access tokens because they are encrypted and can only be decrypted under your account.
@extesy Correct. It's a security issue for Travis. I wish there was a way around this :/ I'll take a look at this PR though in a few
At a first pass, this looks good! I'll look more into it Saturday!
Other than the line I commented on, this all looks good to me!
I'm going to go ahead and merge, this; everything worked when I pulled a local copy of your fork! Thanks!