class Twitch::Bot::Client::PingHandler
Respond to a :ping event with a pong so we don't get disconnected.
Public Class Methods
handled_events()
click to toggle source
# File lib/twitch/bot/default_handlers.rb, line 13 def self.handled_events [:ping] end
Public Instance Methods
call()
click to toggle source
# File lib/twitch/bot/default_handlers.rb, line 9 def call client.send_data "PONG :#{event.hostname}" end