ZSocket constructor

ZSocket(
  1. ZMQSocket _socket,
  2. 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);
  });
}