added error handling for hello()

This commit is contained in:
or-else
2017-05-24 18:23:26 -07:00
parent 71fc855940
commit 40cccfdfa9
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -6,8 +6,8 @@ and [icons](https://google.github.io/material-design-icons/#icon-font-for-the-we
This is work in progress. Bugs are expected. The app was tested in the latest Chrome & Firefox only.
Try it at http://api.tinode.co/x/example-react-js/. Login as one of `alice`, `bob`, `carol`, `dave`, `frank`.
Password is `<login>123`, e.g. login for `alice` is `alice123`.
Try it live at http://api.tinode.co/x/example-react-js/. Login as one of `alice`, `bob`, `carol`, `dave`, `frank`.
Password is `<login>123`, e.g. password for `alice` is `alice123`.
License: [Apache 2.0](http://www.apache.org/licenses/LICENSE-2.0)
+2 -2
View File
@@ -1476,14 +1476,14 @@
});
}
},
handleDisconnect: function() {
handleDisconnect: function(err) {
this.setState({
sidePanelSelected: 'login',
sidePanelTitle: null,
sidePanelAvatar: null,
dialogSelected: null,
loggedIn: false,
errorText: 'disconnected',
errorText: err && err.message ? err.message : 'disconnected',
topicSelected: '',
loginDisabled: false,
subscriptions: {},