subscribeToTaskChanges(table) {
        this._spineWebClient.subscribeTo(TaskView)
                            .post()
                            .then(({itemAdded, itemChanged, itemRemoved, unsubscribe}) => {
                                itemAdded.subscribe(task => this._addToTable(table, task));
                                itemChanged.subscribe(task => this._update(table, task));
                                itemRemoved.subscribe(task => this._removeFromTable(table, task));
                            })
                            .catch(errorCallback);
    }
/**
     * Subscribes to all task list changes on the server and displays them on the UI.
     *
     * @param table the view to display the tasks in
     */
Subscribes to all task list changes on the server and displays them on the UI.
@param table the view to display the tasks in
Subscribes to all task list changes on the server and displays them on the UI . @param table the view to display the tasks in
subscribeToTaskChanges(table) {
        this._spineWebClient.subscribeTo(TaskView)
                            .post()
                            .then(({itemAdded, itemChanged, itemRemoved, unsubscribe}) => {
                                itemAdded.subscribe(task => this._addToTable(table, task));
                                itemChanged.subscribe(task => this._update(table, task));
                                itemRemoved.subscribe(task => this._removeFromTable(table, task));
                            })
                            .catch(errorCallback);
    }
subscribeToTaskChanges ( table ) { this . _spineWebClient . subscribeTo ( TaskView ) . post ( ) . then ( ( { itemAdded , itemChanged , itemRemoved , unsubscribe } ) => { itemAdded . subscribe ( task => this . _addToTable ( table , task ) ) ; itemChanged . subscribe ( task => this . _update ( table , task ) ) ; itemRemoved . subscribe ( task => this . _removeFromTable ( table , task ) ) ; } ) . catch ( errorCallback ) ; }
Subscribes to all task list changes on the server and displays them on the UI.
Subscribes to all task list changes on the server and displays them on the UI .