fix default websocket state
This commit is contained in:
parent
9b0e31d312
commit
7707d096d2
|
@ -3,7 +3,7 @@ const DISCONNECTED = 'WEBSOCKET_DISCONNECTED'
|
|||
|
||||
|
||||
const defaultState = {
|
||||
connected: true,
|
||||
connected: false,
|
||||
/* we may want to have an error message attribute here at some point */
|
||||
}
|
||||
export default function reducer(state = defaultState, action) {
|
||||
|
@ -27,4 +27,4 @@ export function connected() {
|
|||
}
|
||||
export function disconnected() {
|
||||
return {type: DISCONNECTED}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue