class WebSocket::Handshake::Handler::Client
Private Instance Methods
Source
# File lib/websocket/handshake/handler/client.rb, line 17 def handshake_keys super + @handshake.headers.to_a end
@see WebSocket::Handshake::Handler::Base#header_handshake_keys
Calls superclass method
WebSocket::Handshake::Handler::Base#handshake_keys
Source
# File lib/websocket/handshake/handler/client.rb, line 10 def header_line path = @handshake.path path += '?' + @handshake.query if @handshake.query "GET #{path} HTTP/1.1" end
Source
# File lib/websocket/handshake/handler/client.rb, line 23 def verify_protocol return true if supported_protocols.empty? protos = provided_protocols & supported_protocols raise WebSocket::Error::Handshake::UnsupportedProtocol if protos.empty? true end
Verify if received header matches with one of the sent ones @return [Boolean] True if matching. False otherwise(appropriate error is set)