Closes the $(ZMQ) socket.
Note that the socket will be automatically closed when the last reference to it goes out of scope, so it is often not necessary to call this method manually.
ZmqException if $(ZMQ) reports an error.
$(ZMQREF zmq_close())
auto s = Socket(SocketType.pair); assert (s.initialized); s.close(); assert (!s.initialized);
See Implementation
Closes the $(ZMQ) socket.
Note that the socket will be automatically closed when the last reference to it goes out of scope, so it is often not necessary to call this method manually.