BackchatIO("firstbox", :api_key => "the_key").each do |message|
# do stuff with message here
end
def BackchatIO(name, params)
Backchat::Stream.new(name, params)
end
module Backchat
class Stream(name, params)
# wrap fetcher here
def each(&b)
fetcher.listen(stream_params, &b)
end
end
end