Method: Selenium::WebDriver::WebSocketConnection#initialize

Defined in:
lib/selenium/webdriver/common/websocket_connection.rb

#initialize(url:) ⇒ WebSocketConnection

Returns a new instance of WebSocketConnection.

[View source]

35
36
37
38
39
40
41
42
43
# File 'lib/selenium/webdriver/common/websocket_connection.rb', line 35

def initialize(url:)
  @callback_threads = ThreadGroup.new

  @session_id = nil
  @url = url

  process_handshake
  @socket_thread = attach_socket_listener
end