ZSocket constructor
ZSocket(
- ZMQSocket _socket,
- ZContext _context
Construct a new ZSocket with a given underlying ZMQSocket _socket
and the global ZContext _context
Implementation
ZSocket(super._socket, super._context) {
_controller = StreamController(onListen: () {
_context._listen(this);
}, onCancel: () {
_context._stopListening(this);
});
}