title: How to setup a ZMQ PUB/SUB pattern to serve only for pre-authorized subscriber(s)
body: <p>How can I implement or do kind of "hack" in <strong><kbd>PUB</kbd></strong>-<strong><kbd>SUB</kbd></strong> pattern to get an ability to publish only to <strong>authorized</strong> subscribers, <strong>disconnect</strong> unauthorized subscribers etc?</p>
  
  <p>I googled for this problem, but all the answers very similar to set subscribe filter in subscriber side.</p>
  
  <p>But I want, as I said, publish my updates from <kbd>PUB</kbd> only to those clients that passed an authorization, or have some secret <strong><code>key</code></strong>, that was received in <strong><kbd>REQ</kbd></strong>-<strong><kbd>REP</kbd></strong>.</p>
  
  <p>Thanks for any ideas.</p>