From bbf3c187c4967509a8097b168533786daacc2ec6 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Mon, 21 May 2018 11:17:31 +0200 Subject: rpc --- app/client/live/actions.js | 23 ++++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) (limited to 'app/client/live/actions.js') 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', } +} -- cgit v1.2.3-70-g09d2