class WebSocket::Handshake::Handler::Client

def handshake_keys

Other tags:
    See: WebSocket::Handshake::Handler::Base#header_handshake_keys -
def handshake_keys
  super + @handshake.headers.to_a
end

def header_line

Other tags:
    See: WebSocket::Handshake::Handler::Base#header_line -
def header_line
  path = @handshake.path
  path += '?' + @handshake.query if @handshake.query
  "GET #{path} HTTP/1.1"
end

def verify_protocol

Returns:
  • (Boolean) - True if matching. False otherwise(appropriate error is set)
def verify_protocol
  return true if supported_protocols.empty?
  protos = provided_protocols & supported_protocols
  raise WebSocket::Error::Handshake::UnsupportedProtocol if protos.empty?
  true
end