1 2 3 4 5 6 7
stream = MariBot::Server::TwitterStream.new(token) stream.open loop do data = stream.recv p data unless data.empty? sleep 1 end