diff options
author | =Corey Hulen <corey@hulen.com> | 2016-02-03 15:07:03 -0800 |
---|---|---|
committer | =Corey Hulen <corey@hulen.com> | 2016-02-03 15:07:03 -0800 |
commit | f1bf70624288bd192b9523764f239eee2a022304 (patch) | |
tree | 1d85e1994f19636b8223349ae9b033e19d609e32 /web/react/stores | |
parent | 2b4af8d8c73ba5b9b683b65b1df4d4e3f24edb81 (diff) | |
download | chat-f1bf70624288bd192b9523764f239eee2a022304.tar.gz chat-f1bf70624288bd192b9523764f239eee2a022304.tar.bz2 chat-f1bf70624288bd192b9523764f239eee2a022304.zip |
PLT-1851 reconnect and get missing messages
Diffstat (limited to 'web/react/stores')
-rw-r--r-- | web/react/stores/socket_store.jsx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/web/react/stores/socket_store.jsx b/web/react/stores/socket_store.jsx index 744c2c8e5..8f24f02a6 100644 --- a/web/react/stores/socket_store.jsx +++ b/web/react/stores/socket_store.jsx @@ -64,6 +64,8 @@ class SocketStoreClass extends EventEmitter { ErrorStore.storeLastError(null); ErrorStore.emitChange(); } + + AsyncClient.getChannels(); } this.failCount = 0; @@ -81,7 +83,8 @@ class SocketStoreClass extends EventEmitter { conn.onerror = (evt) => { if (this.failCount === 0) { - console.log('websocket error ' + evt); //eslint-disable-line no-console + console.log('websocket error'); //eslint-disable-line no-console + console.log(evt); //eslint-disable-line no-console } this.failCount = this.failCount + 1; |