New on_connect event when stream is connected.
This commit is contained in:
parent
442dcb3370
commit
c88aefece8
1 changed files with 1 additions and 0 deletions
|
@ -252,6 +252,7 @@ module Ebooks
|
||||||
case ev
|
case ev
|
||||||
when Array # Initial array sent on first connection
|
when Array # Initial array sent on first connection
|
||||||
log "Online!"
|
log "Online!"
|
||||||
|
fire(:connect)
|
||||||
return
|
return
|
||||||
when Twitter::DirectMessage
|
when Twitter::DirectMessage
|
||||||
return if ev.sender.id == @user.id # Don't reply to self
|
return if ev.sender.id == @user.id # Don't reply to self
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue