Chat Connectivity Checklist (First 10 Minutes)¶
When chat messages are delayed or connectivity fails, follow this initial checklist.
Immediate Checklist¶
- Access Token Validity: Has the user's token expired? (Typically lasts 24h)
- Thread Existence: Does the chat thread still exist and is the user a participant?
- Participant Permissions: Does the user have the required role (e.g.,
member) to send messages? - Network Connectivity: Is the client's WebSocket connection blocked by a firewall?
- Real-time Event Subscription: Is the app listening for incoming messages correctly?
Essential Diagnostic Steps¶
1. Check Browser Console¶
Open the developer tools and look for 401 Unauthorized or 403 Forbidden errors.
2. Verify Token Scopes¶
Ensure the token has the chat scope when it was generated.
# Verify identity and existing tokens (if using identity service)
az communication identity list-tokens --user-id "<user_id>" --connection-string "<your_connection_string>"
3. Check Network Traffic¶
Look for failed requests to *.communication.azure.com. If WebSockets are blocked, chat will fail.
Key KQL Queries¶
Run this to see chat message failures:
ACSChatMessageSentEvents
| where TimeGenerated > ago(1h)
| where ResultType == "Failed"
| summarize Count=count() by ResultSignature, ThreadId
| order by Count desc
See Also¶
Sources¶
- Azure Communication Services Chat SDK Troubleshooting
- Real-time Messaging Network Requirements