title: How to check if JZMQ socket is connected
body: <p>Is there way to check if JZMQ (java binding of zmq) socket is connected?</p>
  
  <pre><code>ZContext zmqContext = new ZContext();
  ZMQ.Socket workerSocket = zmqContext.createSocket(ZMQ.DEALER);
  workerSocket.setIdentity("ID".getBytes());
  workerSocket.connect("tcp://localhost:5556");
  </code></pre>
  
  <p>After code above I would like to check if workerSocket is connected. It would be nice to check connection status.</p>