Method: Twitter::Streaming::Client#initialize

Defined in:
lib/twitter/streaming/client.rb

#initialize(options = {}) ⇒ Twitter::Streaming::Client

Initializes a new Client object

Parameters:

  • options (Hash) (defaults to: {})

    A customizable set of options.

Options Hash (options):

  • :tcp_socket_class (String)

    A class that Connection will use to create a new TCP socket.

  • :ssl_socket_class (String)

    A class that Connection will use to create a new SSL socket.



22
23
24
25
# File 'lib/twitter/streaming/client.rb', line 22

def initialize(options = {})
  super
  @connection = Streaming::Connection.new(options)
end