Skip to main content
Version: 3.3.x

Initialize a C++ client object

You can instantiate a Client object using just a URL for the target Pulsar cluster like this:

Client client("pulsar://localhost:6650");
note

If you run a cluster in standalone mode, the broker is available at the pulsar://localhost:6650 URL by default.