public function req($dsn = null) { $socket = new Socket($this->context->getSocket(\ZMQ::SOCKET_REQ), $this->serializer, $this->loop); if ($dsn) { $socket->connect($dsn); } return $socket; }