diff --git a/site2/docs/client-libraries-node.md b/site2/docs/client-libraries-node.md index 20e3e8e92fec7..5bc5e49b84831 100644 --- a/site2/docs/client-libraries-node.md +++ b/site2/docs/client-libraries-node.md @@ -107,7 +107,7 @@ Here is an example: ```JavaScript const producer = await client.createProducer({ - topic: 'my-topic', + topic: 'my-topic', // or 'my-tenant/my-namespace/my-topic' to specify topic's property and namespace }); await producer.send({ @@ -137,7 +137,7 @@ Pulsar Node.js producers have the following methods available: | Parameter | Description | Default | | :-------- | :---------- | :------ | -| `topic` | The Pulsar [topic](reference-terminology.md#topic) to which the producer publishes messages. | | +| `topic` | The Pulsar [topic](reference-terminology.md#topic) to which the producer publishes messages. The topic format is `` or `//`. For example, `sample/ns1/my-topic` | | | `producerName` | A name for the producer. If you do not explicitly assign a name, Pulsar automatically generates a globally unique name. If you choose to explicitly assign a name, it needs to be unique across *all* Pulsar clusters, otherwise the creation operation throws an error. | | | `sendTimeoutMs` | When publishing a message to a topic, the producer waits for an acknowledgment from the responsible Pulsar [broker](reference-terminology.md#broker). If a message is not acknowledged within the threshold set by this parameter, an error is thrown. If you set `sendTimeoutMs` to -1, the timeout is set to infinity (and thus removed). Removing the send timeout is recommended when using Pulsar's [message de-duplication](cookbooks-deduplication.md) feature. | 30000 | | `initialSequenceId` | The initial sequence ID of the message. When producer send message, add sequence ID to message. The ID is increased each time to send. | | @@ -594,4 +594,4 @@ This section provides step-by-step instructions on how to use the end-to-end enc my-message-7 my-message-8 my-message-9 - ``` \ No newline at end of file + ```