How to create a shared ZMQ socket using PHP? The scenario is
- User1 logs in to the system – A ZMQ bind happens and the user stays in the system
- User2 logs in to the system – Bind exception arises because of socket address already in use
How should we handle this issue using ZMQ?
The answer to this question is this post in SO
Method:
ZMQContext::getSocket ( integer $type [, string $persistent_id = null [, callback $on_new_socket = null ]] )