# File lib/stomp_server/protocols/stomp.rb, line 77
  def connect(frame)
    if @@auth_required
      unless frame.headers['login'] and frame.headers['passcode'] and  @@stompauth.authorized[frame.headers['login']] == frame.headers['passcode']
        raise "Invalid Login"
      end
    end
    puts "Connecting" if $DEBUG
    response = StompServer::StompFrame.new("CONNECTED", {'session' => 'wow'})
    stomp_send_data(response)
    @connected = true
  end