Skip to content

Commit

Permalink
Merge pull request ttezel#266 from rhysd/mute-unmute-events
Browse files Browse the repository at this point in the history
Add 'mute' and 'unmute' streaming events
  • Loading branch information
ttezel committed May 27, 2016
2 parents 7914281 + 837f73c commit f5bf81c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -427,6 +427,8 @@ In addition, the following user stream events are provided for you to listen on:
* `unfavorite`
* `follow`
* `unfollow`
* `mute`
* `unmute`
* `user_update`
* `list_created`
* `list_destroyed`
Expand Down
2 changes: 2 additions & 0 deletions lib/streaming-api-connection.js
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,8 @@ StreamingAPIConnection.prototype._setupParser = function () {
else if (ev === 'unfavorite') { self.emit('unfavorite', msg) }
else if (ev === 'follow') { self.emit('follow', msg) }
else if (ev === 'unfollow') { self.emit('unfollow', msg) }
else if (ev === 'mute') { self.emit('mute', msg) }
else if (ev === 'unmute') { self.emit('unmute', msg) }
else if (ev === 'user_update') { self.emit('user_update', msg) }
else if (ev === 'list_created') { self.emit('list_created', msg) }
else if (ev === 'list_destroyed') { self.emit('list_destroyed', msg) }
Expand Down

0 comments on commit f5bf81c

Please sign in to comment.