redux-socket.io icon indicating copy to clipboard operation
redux-socket.io copied to clipboard

Server->client messages are getting echoed back to the websocket server

Open circuitry opened this issue 7 years ago • 1 comments

I am trying to send a message from a server to a client and to have an action dispatched client-side.

The action is getting dispatched successfully, but the client echos back the message it received to the server, resulting in unnecessary server traffic. Is there any way to disable this server->client->server echoing behavior?

circuitry avatar Jul 04 '18 17:07 circuitry

Hmm, it sounds like it might be configuration issue. Are the actions that you are dispatching from your server prefixed with server/? I have not confirmed, but I would assume that if you emit an action from your server with the websocket prefix that it would echo it back like you are describing

DaneSirois avatar Sep 13 '18 23:09 DaneSirois