Quick implementation to pass on redux action to server and vice versa. Add to you redux
Server structure of message
{
type,
data
}
ws.send(JSON.stringify({
type: ‘REDUX_ACTION’,
data: {}
}));
Front end structure of message
{
type,
data
}