class WebSocket::Handshake::Handler::Base

This class and it’s descendants are included in client or server handshake in order to extend basic functionality

def finishing_line

Returns:
  • (String) - data
def finishing_line
  ''
end

def handshake_keys

Returns:
  • (Array) - List of headers as arrays [key, value]
def handshake_keys
  []
end

def header_line

Returns:
  • (String) - First line of HTTP header
def header_line
  ''
end

def initialize(handshake)

def initialize(handshake)
  @handshake = handshake
end

def to_s

Other tags:
    See: WebSocket::Handshake::Base#to_s -
def to_s
  result = [header_line]
  handshake_keys.each do |key|
    result << key.join(': ')
  end
  result << ''
  result << finishing_line
  result.join("\r\n")
end

def valid?

def valid?
  true
end