Sha256: cc0a74e7cdb1b804124568cbb5530e327d9a058f4d54ae55b02372c81f7e2c3f
Contents?: true
Size: 553 Bytes
Versions: 1
Compression:
Stored size: 553 Bytes
Contents
class Scamp module Connection private def connect(api_key, channels_to_join) EventMachine.run do # Ideally populate_channel_list would block, but I can't see an easy way to do this, so a hacky callback it is. populate_channel_list do channels_to_join.map{|c| channel_id(c) }.each do |id| puts "Joining channel #{id}" join(id) do fetch_channel_data(id) stream(id) end end end end end end #module end #class
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
scamp-0.0.1 | lib/scamp/connection.rb |