My experience about WebSocket + React is implementing the connection in Redux middleware, including all the received event handler to dispatch Redux action automatically and to it has to do.
And dispatching a action like:
{
type: "SOCKET_XXXXXX"
}
to send event from client to server.
I'll try your solution for next time, it seems really work.
Thanks for share.
For further actions, you may consider blocking this person and/or reporting abuse
We're a blogging-forward open source social network where we learn from one another
My experience about WebSocket + React is implementing the connection in Redux middleware, including all the received event handler to dispatch Redux action automatically and to it has to do.
And dispatching a action like:
{
type: "SOCKET_XXXXXX"
}
to send event from client to server.
I'll try your solution for next time, it seems really work.
Thanks for share.