module FBomb::Campfire::StreamExtension

Public Instance Methods

stream() click to toggle source
# File lib/fbomb/campfire.rb, line 40
def stream
  @stream ||= (
    flow = self
    Twitter::JSONStream.connect(
      :path => "/flow/#{ flow.id }/live.json",
      :host => 'streaming.campfirenow.com',
      :auth => "#{ connection.token }:x"
    )
  )
end
streaming(&block) click to toggle source
# File lib/fbomb/campfire.rb, line 51
def streaming(&block)
  steam.instance_eval(&block)
end