 
   online: =>
     console.log 'Hubot XMPP client online'
-    
+
     @client.send new Xmpp.Element('presence', type: 'available' )
       .c('show').t('chat')
 

        .c('history', seconds: 1 )) # prevent the server from confusing us with old messages
                                    # and it seems that servers don't reliably support maxchars
                                    # or zero values
      
    # send raw whitespace for keepalive 
    setInterval =>
      @client.send ' '
    , @options.keepaliveInterval

      password: process.env.HUBOT_XMPP_PASSWORD
      rooms:    process.env.HUBOT_XMPP_ROOMS.split(',')
      keepaliveInterval: 30000 # ms interval to send whitespace to xmpp server

    console.log options

    @client = new Xmpp.Client
      jid: options.username
      password: options.password
