Sha256: 9359973da8c0f345b6653bb37615780ccb4fe8c4ba879a122f71668e124f7f9f

Contents?: true

Size: 310 Bytes

Versions: 38

Compression:

Stored size: 310 Bytes

Contents

#!/usr/bin/env ruby
$:.unshift File.expand_path '../lib', File.dirname(__FILE__)
require 'rubygems'
require 'tw'

user = ARGV.shift
client = Tw::Client::Stream.new user

loop do
  begin
    client.user_stream do |m|
      puts m
    end
  rescue StandardError, Timeout::Error => e
    puts e.message
  end
end

Version data entries

38 entries across 38 versions & 1 rubygems

Version Path
tw-0.5.1 samples/stream.rb
tw-0.5.0 samples/stream.rb
tw-0.4.9 samples/stream.rb
tw-0.4.8 samples/stream.rb
tw-0.4.7 samples/stream.rb
tw-0.4.6 samples/stream.rb
tw-0.4.5 samples/stream.rb
tw-0.4.4 samples/stream.rb
tw-0.4.3 samples/stream.rb
tw-0.4.2 samples/stream.rb
tw-0.4.1 samples/stream.rb
tw-0.4.0 samples/stream.rb
tw-0.3.9 samples/stream.rb
tw-0.3.8 samples/stream.rb
tw-0.3.7 samples/stream.rb
tw-0.3.6 samples/stream.rb
tw-0.3.5 samples/stream.rb
tw-0.3.4 samples/stream.rb