You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/event-hubs/event-hubs-node-get-started-send.md
+21-14Lines changed: 21 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
title: Send or receive events from Azure Event Hubs using JavaScript (latest)
3
3
description: This article provides a walkthrough for creating a JavaScript application that sends/receives events to/from Azure Event Hubs using the latest azure/event-hubs package.
4
4
ms.topic: quickstart
5
-
ms.date: 09/16/2021
5
+
ms.date: 02/22/2022
6
6
ms.devlang: javascript
7
7
ms.custom: devx-track-js, mode-api
8
8
---
@@ -88,9 +88,9 @@ In this section, you create a JavaScript application that sends events to an eve
88
88
*`EVENT HUBS NAMESPACE CONNECTION STRING`
89
89
*`EVENT HUB NAME`
90
90
1. Run `node send.js` to execute thisfile. This command sends a batch of three events to your event hub.
91
-
1. In the Azure portal, verify that the event hub has received the messages. In the **Metrics** section, switch to **Messages** view. Refresh the page to update the chart. It might take a few seconds for it to show that the messages have been received.
91
+
1. In the Azure portal, verify that the event hub has received the messages. Refresh the page to update the chart. It might take a few seconds for it to show that the messages have been received.
92
92
93
-
[](./media/getstarted-dotnet-standard-send-v2/verify-messages-portal.png#lightbox)
93
+
[](./media/node-get-started-send/verify-messages-portal.png#lightbox)
94
94
95
95
> [!NOTE]
96
96
> For the complete source code, including additional informational comments, go to the [GitHub sendEvents.js page](https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/eventhub/event-hubs/samples/v5/javascript/sendEvents.js).
@@ -122,45 +122,46 @@ Be sure to record the connection string and container name for later use in the
122
122
1. Create a file called *receive.js*, and paste the following code into it:
Received event: 'First event' from partition: '0' and consumer group: '$Default'
189
+
Received event: 'Second event' from partition: '0' and consumer group: '$Default'
190
+
Received event: 'Third event' from partition: '0' and consumer group: '$Default'
191
+
```
185
192
> [!NOTE]
186
193
> For the complete source code, including additional informational comments, go to the [GitHub receiveEventsUsingCheckpointStore.js page](https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/eventhub/eventhubs-checkpointstore-blob/samples/v1/javascript/receiveEventsUsingCheckpointStore.js).
0 commit comments