diff --git a/src/Lookup/Producer.php b/src/Lookup/Producer.php index ae7f1a2..a9417bf 100644 --- a/src/Lookup/Producer.php +++ b/src/Lookup/Producer.php @@ -31,4 +31,9 @@ final class Producer $array['topics'] ?? [], ); } + + public function toTcpUri(): string + { + return sprintf('%s:%s', $this->broadcastAddress, $this->tcpPort); + } }