diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2018-05-27 04:16:43 +0200 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2018-05-27 04:16:43 +0200 |
| commit | 9e08754fa2b4fde9b060606fe5851f31590690d6 (patch) | |
| tree | 0c13cb827b11f3a849676b84c6958ae0a7b1c1c9 /app/client/socket/socket.live.js | |
| parent | f82ca77348bb8e025240bab1003ae697e27617e2 (diff) | |
test sending events
Diffstat (limited to 'app/client/socket/socket.live.js')
| -rw-r--r-- | app/client/socket/socket.live.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/app/client/socket/socket.live.js b/app/client/socket/socket.live.js index c55695f..867b391 100644 --- a/app/client/socket/socket.live.js +++ b/app/client/socket/socket.live.js @@ -15,25 +15,25 @@ socket.on('res', (data) => { } break case 'get_params': - store.dispatch({ + dispatch({ type: types.socket.load_params, opt: data.res, }) break case 'list_checkpoints': - store.dispatch({ + dispatch({ type: types.socket.list_checkpoints, checkpoints: data.res, }) break case 'list_sequences': - store.dispatch({ + dispatch({ type: types.socket.list_sequences, sequences: data.res, }) break case 'list_epochs': - store.dispatch({ + dispatch({ type: types.socket.list_epochs, epochs: data.res, }) |
