class WebSocket::Handshake::Handler::Client75

Private Instance Methods

handshake_keys() click to toggle source

@see WebSocket::Handshake::Handler::Base#handshake_keys

# File lib/websocket/handshake/handler/client75.rb, line 9
def handshake_keys
  keys = [
    ['Upgrade', 'WebSocket'],
    ['Connection', 'Upgrade']
  ]
  host = @handshake.host
  host += ":#{@handshake.port}" if @handshake.port
  keys << ['Host', host]
  keys << ['Origin', @handshake.origin] if @handshake.origin
  keys += super
  keys
end