Closes the $(ZMQ) socket.
Note that the socket will be closed automatically upon destruction, so it is usually 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 closed automatically upon destruction, so it is usually not necessary to call this method manually.