diff --git a/store/pulse-middleware.js b/store/pulse-middleware.js index ffa6e79..8d07949 100644 --- a/store/pulse-middleware.js +++ b/store/pulse-middleware.js @@ -107,6 +107,10 @@ module.exports = store => { getInfo(type, index); }) .on('change', (type, index) => { + if (type === 'server') { + pa.end(); // Reconnect + return; + } store.dispatch(pulseActions.change({ type, index })); getInfo(type, index); })