summaryrefslogtreecommitdiff
path: root/app/client/live/actions.js
diff options
context:
space:
mode:
Diffstat (limited to 'app/client/live/actions.js')
-rw-r--r--app/client/live/actions.js23
1 files changed, 14 insertions, 9 deletions
diff --git a/app/client/live/actions.js b/app/client/live/actions.js
index 30a25ff..047e51f 100644
--- a/app/client/live/actions.js
+++ b/app/client/live/actions.js
@@ -1,10 +1,15 @@
-import socket from '../socket'
+import * as socket from '../socket'
-export const loadOptFromServer = (opt) => ({
- type: 'LIVE_LOAD_OPT_FROM_SERVER', opt,
-})
-// export const updateOptFromServer = (key, value) => {
-// return {
-// type: 'LIVE_LOAD_OPT_FROM_SERVER', opt,
-// }
-// }
+export const get_params = () => {
+ socket.get_params()
+ return { type: 'GET_PARAMS', }
+}
+
+export const set_param = (key, value) => {
+ socket.set_param(key, value)
+ return { type: 'SET_PARAM', key, value, }
+}
+
+export const get_checkpoints = () => {
+ return { type: 'GET_CHECKPOINTS', }
+}