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 place where coders share, stay up-to-date and grow their careers.
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.