diff --git a/app/actions/pyodideActions.ts b/app/actions/pyodideActions.ts index 7f789df..69d7678 100644 --- a/app/actions/pyodideActions.ts +++ b/app/actions/pyodideActions.ts @@ -6,8 +6,9 @@ import { PYODIDE_VARIABLE_NAMES } from '../constants/constants'; // Actions export const PyodideActions = { - SendExecuteRequest: createAction( - 'SEND_EXECUTE_REQUEST' + Launch: createAction('LAUNCH'), + SetPyodideWorker: createAction( + 'SET_PYODIDE_WORKER' ), LoadEpochs: createAction('LOAD_EPOCHS'), LoadCleanedEpochs: createAction( @@ -21,22 +22,13 @@ export const PyodideActions = { 'GET_EPOCHS_INFO' ), GetChannelInfo: createAction('GET_CHANNEL_INFO'), - SetMainChannel: createAction('SET_MAIN_CHANNEL'), SetEpochInfo: createAction('SET_EPOCH_INFO'), SetChannelInfo: createAction('SET_CHANNEL_INFO'), SetPSDPlot: createAction('SET_PSD_PLOT'), SetTopoPlot: createAction('SET_TOPO_PLOT'), SetERPPlot: createAction('SET_ERP_PLOT'), - ReceiveExecuteReply: createAction( - 'RECEIVE_EXECUTE_REPLY' - ), - ReceiveExecuteResult: createAction( - 'RECEIVE_EXECUTE_RESULT' - ), - ReceiveDisplayData: createAction( - 'RECEIVE_DISPLAY_DATA' - ), - ReceiveStream: createAction('RECEIVE_STREAM'), + ReceiveMessage: createAction('RECEIVE_MESSAGE'), + ReceiveError: createAction('RECEIVE_ERROR'), } as const; export type PyodideActionType = ActionType<