class Playwright::WebSocketClient::SecureSocketFactory

Public Class Methods

new(host, port) click to toggle source
# File lib/playwright/web_socket_client.rb, line 15
def initialize(host, port)
  @host = host
  @port = port || 443
end

Public Instance Methods

create() click to toggle source
# File lib/playwright/web_socket_client.rb, line 20
def create
  tcp_socket = TCPSocket.new(@host, @port)
  OpenSSL::SSL::SSLSocket.new(tcp_socket).tap(&:connect)
end