Method: Ferrum::Client#initialize

Defined in:
lib/ferrum/client.rb

#initialize(ws_url, options) ⇒ Client

Returns a new instance of Client.



68
69
70
71
72
73
74
75
76
77
# File 'lib/ferrum/client.rb', line 68

def initialize(ws_url, options)
  @command_id = 0
  @ws_url = ws_url
  @options = options
  @pendings = Concurrent::Hash.new
  @ws = WebSocket.new(ws_url, options.ws_max_receive_size, options.logger)
  @subscriber = Subscriber.new

  start
end