summaryrefslogtreecommitdiff
path: root/app/client/socket/socket.live.js
diff options
context:
space:
mode:
Diffstat (limited to 'app/client/socket/socket.live.js')
-rw-r--r--app/client/socket/socket.live.js23
1 files changed, 12 insertions, 11 deletions
diff --git a/app/client/socket/socket.live.js b/app/client/socket/socket.live.js
index a166c5e..ab5878e 100644
--- a/app/client/socket/socket.live.js
+++ b/app/client/socket/socket.live.js
@@ -5,7 +5,7 @@ import * as player from '../live/player'
import { socket } from './socket.connection'
socket.on('res', (data) => {
- console.log('socket:', data.cmd)
+ // console.log('socket:', data.cmd)
switch (data.cmd) {
case 'get_last_frame':
if (data.res !== 'working') {
@@ -26,35 +26,36 @@ socket.on('res', (data) => {
checkpoints: data.res,
})
break
- case 'list_sequences':
- dispatch({
- type: types.socket.list_sequences,
- sequences: data.res,
- })
- break
case 'list_epochs':
dispatch({
type: types.socket.list_epochs,
epochs: data.res,
})
break
+ case 'list_sequences':
+ dispatch({
+ type: types.socket.list_sequences,
+ sequences: data.res,
+ })
+ break
default:
break
}
- console.log(data)
+ // console.log(data)
})
socket.on('frame', player.onFrame)
-export function list_checkpoints() {
+export function list_checkpoints(module) {
socket.emit('cmd', {
cmd: 'list_checkpoints',
+ payload: module,
})
}
-export function list_epochs(checkpoint_name) {
+export function list_epochs(module, checkpoint_name) {
socket.emit('cmd', {
cmd: 'list_epochs',
- payload: checkpoint_name,
+ payload: module + '/' + checkpoint_name,
})
}
export function list_sequences(module) {