summaryrefslogtreecommitdiff
path: root/app/client/socket.js
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2018-05-25 19:54:38 +0200
committerJules Laplace <julescarbon@gmail.com>2018-05-25 19:54:38 +0200
commit5a4de48a6d63cb383832f6ef85b21699a511b755 (patch)
tree4c4fd18d26f8b5c95a6788d138ed62869357c975 /app/client/socket.js
parent1a99af129427275c22e8276e75fa4b8da6602129 (diff)
stubbing in a lot of stuff!
Diffstat (limited to 'app/client/socket.js')
-rw-r--r--app/client/socket.js9
1 files changed, 5 insertions, 4 deletions
diff --git a/app/client/socket.js b/app/client/socket.js
index a2a745e..ea6f380 100644
--- a/app/client/socket.js
+++ b/app/client/socket.js
@@ -17,25 +17,25 @@ socket.on('res', (data) => {
break
case 'get_params':
store.dispatch({
- type: 'LOAD_PARAMS',
+ type: types.socket.load_params,
opt: data.res,
})
break
case 'list_checkpoints':
store.dispatch({
- type: 'LIST_CHECKPOINTS',
+ type: types.socket.list_checkpoints,
checkpoints: data.res,
})
break
case 'list_sequences':
store.dispatch({
- type: 'LIST_SEQUENCES',
+ type: types.socket.list_sequences,
sequences: data.res,
})
break
case 'list_epochs':
store.dispatch({
- type: 'LIST_EPOCHS',
+ type: types.socket.list_epochs,
epochs: data.res,
})
break
@@ -49,6 +49,7 @@ socket.on('frame', player.onFrame)
socket.on('status', (data) => {
console.log('got status', data.key, data.value)
+ store.dispatch({ type: types.socket.status })
switch (data.key) {
case 'processing':
store.dispatch({