Add Lookup/Producer::toTcpUri

This commit is contained in:
2021-09-15 01:26:20 +03:00
parent 43b92e9bb9
commit 5bab748952

View File

@ -31,4 +31,9 @@ final class Producer
$array['topics'] ?? [], $array['topics'] ?? [],
); );
} }
public function toTcpUri(): string
{
return sprintf('%s:%s', $this->broadcastAddress, $this->tcpPort);
}
} }