Method: Mastodon::Streaming::Connection#initialize
- Defined in:
- lib/mastodon/streaming/connection.rb
#initialize(options = {}) ⇒ Connection
Returns a new instance of Connection.
9 10 11 12 13 |
# File 'lib/mastodon/streaming/connection.rb', line 9 def initialize( = {}) @tcp_socket_class = .fetch(:tcp_socket_class) { TCPSocket } @ssl_socket_class = .fetch(:ssl_socket_class) { OpenSSL::SSL::SSLSocket } @using_ssl = .fetch(:using_ssl) { false } end |