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