Auto-reconnect to event stream after 20secs timeout

This commit is contained in:
Deluan
2020-11-09 15:13:32 -05:00
parent 2b1a5f579a
commit 56803d0151
7 changed files with 40 additions and 26 deletions
+2 -2
View File
@@ -1,4 +1,4 @@
import { ACTIVITY_SCAN_STATUS_UPD } from '../actions'
import { EVENT_SCAN_STATUS } from '../actions'
export const activityReducer = (
previousState = {
@@ -8,7 +8,7 @@ export const activityReducer = (
) => {
const { type, data } = payload
switch (type) {
case ACTIVITY_SCAN_STATUS_UPD:
case EVENT_SCAN_STATUS:
return { ...previousState, scanStatus: data }
default:
return previousState