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-1.3.1 samples/stream.rb
tw-1.3.0 samples/stream.rb
tw-1.2.1 samples/stream.rb
tw-1.2.0 samples/stream.rb
tw-1.1.1 samples/stream.rb
tw-1.1.0 samples/stream.rb
tw-1.0.12 samples/stream.rb
tw-1.0.11 samples/stream.rb
tw-1.0.10 samples/stream.rb
tw-1.0.9 samples/stream.rb
tw-1.0.8 samples/stream.rb
tw-1.0.7 samples/stream.rb
tw-1.0.6 samples/stream.rb
tw-1.0.5 samples/stream.rb
tw-1.0.4 samples/stream.rb
tw-1.0.3 samples/stream.rb
tw-1.0.2 samples/stream.rb
tw-1.0.1 samples/stream.rb
tw-1.0.0 samples/stream.rb
tw-0.5.2 samples/stream.rb