class WebSocket::Handshake::Handler::Client75
Private Instance Methods
handshake_keys()
click to toggle source
@see WebSocket::Handshake::Handler::Base#handshake_keys
Calls superclass method
WebSocket::Handshake::Handler::Client#handshake_keys
# File lib/websocket/handshake/handler/client75.rb, line 8 def handshake_keys keys = [ %w(Upgrade WebSocket), %w(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