module WebSocket module Handshake # Construct or parse a server WebSocket handshake. # # @example # handshake = WebSocket::Handshake::Server.new # # # Parse client request # @handshake << < true) def initialize(args = {}) super @secure = !!args[:secure] end # Add text of request from Client. This method will parse content immediately and update version, state and error(if neccessary) # # @param [String] data Data to add # # @example # @handshake << <