Parent

Methods

Class/Module Index [+]

Quicksearch

WebSocket::Handshake::Handler::Base

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

Public Class Methods

new(handshake) click to toggle source
# File lib/websocket/handshake/handler/base.rb, line 7
def initialize(handshake)
  @handshake = handshake
end

Public Instance Methods

to_s() click to toggle source

@see WebSocket::Handshake::Base#to_s

# File lib/websocket/handshake/handler/base.rb, line 12
def to_s
  result = [header_line]
  handshake_keys.each do |key|
    result << key.join(': ')
  end
  result << ''
  result << finishing_line
  result.join("\r\n")
end
valid?() click to toggle source
# File lib/websocket/handshake/handler/base.rb, line 22
def valid?
  true
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.