File tree Expand file tree Collapse file tree 1 file changed +1
-15
lines changed
articles/communication-services/quickstarts/chat Expand file tree Collapse file tree 1 file changed +1
-15
lines changed Original file line number Diff line number Diff line change @@ -262,7 +262,7 @@ string messageId = sendChatMessageResult.Id;
262
262
263
263
### Receive chat messages from a chat thread
264
264
265
- You can get chat messages by polling the ` GetMessages ` method on the chat thread client at set intervals:
265
+ Check the list of messages for the bot's echo reply to "Hello World" by polling the ` GetMessages ` method on the chat thread client at set intervals:
266
266
267
267
``` csharp
268
268
AsyncPageable < ChatMessage > allMessages = chatThreadClient .GetMessagesAsync ();
@@ -272,20 +272,6 @@ await foreach (ChatMessage message in allMessages)
272
272
}
273
273
```
274
274
275
- Check the list of messages for the bot's echo reply to "Hello World".
276
-
277
- You can use JavaScript or the Azure mobile SDKs to subscribe to incoming message notifications:
278
-
279
- ``` javascript
280
- // Open notifications channel
281
- await chatClient .startRealtimeNotifications ();
282
- // Subscribe to new notifications
283
- chatClient .on (" chatMessageReceived" , (e ) => {
284
- console .log (" Notification chatMessageReceived!" );
285
- // Your code here
286
- });
287
- ```
288
-
289
275
### Clean up the chat thread
290
276
291
277
When you're finished using the chat thread, delete the thread:
You can’t perform that action at this time.
0 commit comments