client_custom.rb 479 B

1234567891011121314151617
  1. # Copyright (C) 2012-2023 Zammad Foundation, https://zammad-foundation.org/
  2. # file is based on Twitter::Streaming::Client, needed to get custom_connection_handle
  3. # to close connection after config has changed
  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