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