fix default websocket state

This commit is contained in:
Maximilian Hils 2016-06-08 19:41:34 -07:00
parent 9b0e31d312
commit 7707d096d2
1 changed files with 2 additions and 2 deletions

View File

@ -3,7 +3,7 @@ const DISCONNECTED = 'WEBSOCKET_DISCONNECTED'
const defaultState = { const defaultState = {
connected: true, connected: false,
/* we may want to have an error message attribute here at some point */ /* we may want to have an error message attribute here at some point */
} }
export default function reducer(state = defaultState, action) { export default function reducer(state = defaultState, action) {
@ -27,4 +27,4 @@ export function connected() {
} }
export function disconnected() { export function disconnected() {
return {type: DISCONNECTED} return {type: DISCONNECTED}
} }