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, ) @command_id = 0 @ws_url = ws_url @options = @pendings = Concurrent::Hash.new @ws = WebSocket.new(ws_url, .ws_max_receive_size, .logger) @subscriber = Subscriber.new start end |