Skip to content

Commit 0179a2f

Browse files
authored
Fixed blocking issues
- Line 43: Removed "en-us" from all four links. - Line 93: Removed "en-us" from all four links. - Line 131: Removed "en-us" from the link.
1 parent 9520619 commit 0179a2f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

articles/service-bus-messaging/service-bus-nodejs-how-to-use-topics-subscriptions-new-package.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ npm install @azure/service-bus
4040
```
4141

4242
## Send messages to a topic
43-
Interacting with a Service Bus topic starts with instantiating the [ServiceBusClient](https://docs.microsoft.com/en-us/javascript/api/@azure/service-bus/servicebusclient) class and using it to instantiate the [TopicClient](https://docs.microsoft.com/en-us/javascript/api/%40azure/service-bus/topicclient) class. Once you have the topic client, you can create a sender and use either [send](https://docs.microsoft.com/en-us/javascript/api/%40azure/service-bus/sender#send-sendablemessageinfo-) or [sendBatch](https://docs.microsoft.com/en-us/javascript/api/@azure/service-bus/sender#sendbatch-sendablemessageinfo---) method on it to send messages.
43+
Interacting with a Service Bus topic starts with instantiating the [ServiceBusClient](https://docs.microsoft.com/javascript/api/@azure/service-bus/servicebusclient) class and using it to instantiate the [TopicClient](https://docs.microsoft.com/javascript/api/%40azure/service-bus/topicclient) class. Once you have the topic client, you can create a sender and use either [send](https://docs.microsoft.com/javascript/api/%40azure/service-bus/sender#send-sendablemessageinfo-) or [sendBatch](https://docs.microsoft.com/javascript/api/@azure/service-bus/sender#sendbatch-sendablemessageinfo---) method on it to send messages.
4444

4545
1. Open your favorite editor, such as [Visual Studio Code](https://code.visualstudio.com/)
4646
2. Create a file called `send.js` and paste the below code into it. This code will send 10 messages to your topic.
@@ -90,7 +90,7 @@ Messages have some standard properties like `label` and `messageId` that you can
9090
Service Bus topics support a maximum message size of 256 KB in the [Standard tier](service-bus-premium-messaging.md) and 1 MB in the [Premium tier](service-bus-premium-messaging.md). There's no limit on the number of messages held in a topic, but there's a limit on the total size of the messages held by a topic. This topic size is defined at creation time, with an upper limit of 5 GB. For more information about quotas, see [Service Bus quotas](service-bus-quotas.md).
9191

9292
## Receive messages from a subscription
93-
Interacting with a Service Bus subscription starts with instantiating the [ServiceBusClient](https://docs.microsoft.com/en-us/javascript/api/@azure/service-bus/servicebusclient) class and using it to instantiate the [SubscriptionClient](https://docs.microsoft.com/en-us/javascript/api/%40azure/service-bus/subscriptionclient) class. Once you have the subscription client, you can create a receiver and use either [receiveMessages](https://docs.microsoft.com/en-us/javascript/api/%40azure/service-bus/receiver#receivemessages-number--undefined---number-) or [registerMessageHandler](https://docs.microsoft.com/en-us/javascript/api/%40azure/service-bus/receiver#registermessagehandler-onmessage--onerror--messagehandleroptions-) method on it to receive messages.
93+
Interacting with a Service Bus subscription starts with instantiating the [ServiceBusClient](https://docs.microsoft.com/javascript/api/@azure/service-bus/servicebusclient) class and using it to instantiate the [SubscriptionClient](https://docs.microsoft.com/javascript/api/%40azure/service-bus/subscriptionclient) class. Once you have the subscription client, you can create a receiver and use either [receiveMessages](https://docs.microsoft.com/javascript/api/%40azure/service-bus/receiver#receivemessages-number--undefined---number-) or [registerMessageHandler](https://docs.microsoft.com/javascript/api/%40azure/service-bus/receiver#registermessagehandler-onmessage--onerror--messagehandleroptions-) method on it to receive messages.
9494

9595
1. Open your favorite editor, such as [Visual Studio Code](https://code.visualstudio.com/)
9696
2. Create a file called `recieve.js` and paste the below code into it. This code will attempt to receive 10 messages from your subscription. The actual count you receive depends on the number of messages in the subscription and network latency.
@@ -128,7 +128,7 @@ Interacting with a Service Bus subscription starts with instantiating the [Servi
128128

129129
Congratulations! You just received messages from a Service Bus subscription.
130130

131-
The [createReceiver](https://docs.microsoft.com/en-us/javascript/api/%40azure/service-bus/subscriptionclient#createreceiver-receivemode-) method takes in a `ReceiveMode` which is an enum with values [ReceiveAndDelete](message-transfers-locks-settlement.md#settling-receive-operations) and [PeekLock](message-transfers-locks-settlement.md#settling-receive-operations). Remember to [settle your messages](message-transfers-locks-settlement.md#settling-receive-operations) if you use the `PeekLock` mode by using any of `complete()`, `abandon()`, `defer()`, or `deadletter()` methods on the message.
131+
The [createReceiver](https://docs.microsoft.com/javascript/api/%40azure/service-bus/subscriptionclient#createreceiver-receivemode-) method takes in a `ReceiveMode` which is an enum with values [ReceiveAndDelete](message-transfers-locks-settlement.md#settling-receive-operations) and [PeekLock](message-transfers-locks-settlement.md#settling-receive-operations). Remember to [settle your messages](message-transfers-locks-settlement.md#settling-receive-operations) if you use the `PeekLock` mode by using any of `complete()`, `abandon()`, `defer()`, or `deadletter()` methods on the message.
132132

133133
## Subscription filters and actions
134134
Service Bus supports [filters and actions on subscriptions](topic-filters.md), which allows you to filter the incoming messages to a subscription and to edit their properties.

0 commit comments

Comments
 (0)