         else
             @logger.error 'Failed to load profiles from server.'
             @emit 'error', { msg: 'failed to load profiles'}
-    
+
     _onChannels: (data, headers) =>
         if data
             @channels = data.members

            if @users[u].email == email
                return @users[u]

    getChannelByID: (id) ->
        @channels[id]



        if @ws
            @ws.close()

        @_connAttempts++

        timeout = @_connAttempts * 1000
        @logger.info "Reconnecting in %dms", timeout
        setTimeout =>
