client_custom.rb 459 B

12345678910111213141516
  1. # file is based on Twitter::Streaming::Client, needed to get custom_connection_handle
  2. # to close connection after config has changed
  3. require_dependency 'twitter/streaming/connection_custom'
  4. class Twitter::Streaming::ClientCustom < Twitter::Streaming::Client
  5. def initialize(options = {})
  6. super
  7. @connection = Twitter::Streaming::ConnectionCustom.new(options)
  8. end
  9. def custom_connection_handle
  10. @connection.custom_connection_handle
  11. end
  12. end