# File lib/websocket/handshake/base.rb, line 12 def initialize(args = {}) args.each { |k, v| instance_variable_set("@#{k}", v) } @state = :new @handler = nil @data = '' @headers ||= {} @protocols ||= [] end