Justin, Identity determine socket. In my case it is DEALER socket which connects to ROUTER sockets with the same identity. DEALER wouldn't receive messages unless identity set correctly. So I think, I'm using correct address.
The problem is that I don't know how to match request with response on the same socket in case when order of responses is not defined. Andrey пн, 24 апр. 2017 г. в 21:54, Justin Karneges <[email protected]>: > Hi Andrey, > > ROUTER sockets read the first part of the message as the recipient > address. Is it possible you're using the wrong address when sending? > > Justin > > On Mon, Apr 24, 2017, at 01:08 AM, Андрей Олейник wrote: > > Hello, > > I have a chat application that receives messages through WebSockets and > processes them on workers connected by a DEALER-ROUTER pattern. Chat sends > and receives ZMQ messages through one DEALER socket. It has been working > until I added second worker (ROUTER socket). From now there is not guaranty > that client will receive its own response. > > As I understand the solution could be to use separate DEALER socket for > each WebSocket connection or use one socket with a wrapper that will handle > sharing across WebSockets connections. > > What is the best way to have it done? > > Thank you, > Andrey > > *_______________________________________________* > zeromq-dev mailing list > [email protected] > https://lists.zeromq.org/mailman/listinfo/zeromq-dev > > > _______________________________________________ > zeromq-dev mailing list > [email protected] > https://lists.zeromq.org/mailman/listinfo/zeromq-dev
_______________________________________________ zeromq-dev mailing list [email protected] https://lists.zeromq.org/mailman/listinfo/zeromq-dev
