Permalink
Browse files

Merge pull request #64 from mattetti/master

simple example fix due to twitter API change
  • Loading branch information...
2 parents f8d572c + 5338f74 commit c9c84a22076a8096b5288f8a759137f34465bd61 @igrigorik committed Oct 21, 2011
Showing with 5 additions and 3 deletions.
  1. +5 −3 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'
@@ -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|
@@ -37,8 +39,8 @@
ws.onclose {
@channel.unsubscribe(sid)
}
-
}
+
end
puts "Server started"

0 comments on commit c9c84a2

Please sign in to comment.