You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The middleware is used to emit actions, to receive messages you need to save the connection to a constant before passing it to the middleware and then use socket.on('action', store.dispatch) (or anything you want to do with the action).
I recommend you to remove the action.meta.socket key on your server to avoid the middleware emitting them again.
Having all messages being dispatched as actions would be good.
Having connected and disconnected actions as well would be ideal.
The text was updated successfully, but these errors were encountered: