Skip to content

Commit

Permalink
fixed the multicast smaple so it uses SSL to fetch the twitter stream…
Browse files Browse the repository at this point in the history
… (now required)
  • Loading branch information
mattetti committed Oct 21, 2011
1 parent f8d572c commit 5338f74
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions examples/multicast.rb
@@ -1,4 +1,5 @@
require 'lib/em-websocket'
require 'em-websocket'
# requires the twitter-stream gem
require 'twitter/json_stream'
require 'json'

Expand All @@ -15,7 +16,8 @@

@twitter = Twitter::JSONStream.connect(
:path => '/1/statuses/filter.json?track=ruby',
:auth => "#{username}:#{password}"
:auth => "#{username}:#{password}",
:ssl => true
)

@twitter.each_item do |status|
Expand All @@ -37,8 +39,8 @@
ws.onclose {
@channel.unsubscribe(sid)
}

}

end

puts "Server started"
Expand Down

0 comments on commit 5338f74

Please sign in to comment.