lib/rsift/socket.rb in rsift-0.3.5 vs lib/rsift/socket.rb in rsift-0.3.6

- old
+ new

@@ -3,20 +3,20 @@ module Rsift class Socket def self.perform(stream_identifier) - endpoint = "ws://websocket.datasift.net:8080/" + endpoint = "ws://websocket.datasift.net/" EventMachine.run { http = EventMachine::HttpRequest.new( "#{endpoint}#{stream_identifier}").get(:timeout => 0) http.callback do puts "Connected to datasift" end - http.errback do + http.errback do raise SocketError.new("Datasift threw an error") end http.disconnect do raise SocketDisconnect.new("Datasift disconnected me.") \ No newline at end of file