There are two billing metrics for the Stream Chat API. Billing metrics for each application can be seen on the usage page in the Stream dashboard as shown below.
- Monthly Active Users (MAU)
- Peak Concurrent Connection
Monthly Active Users (MAU)
Stream uses WebSocket technology to connect users' devices to our API and transfer Chat events in real-time. Opening a WebSocket connection for a unique user_id increments the count of Monthly Active Users for your organization. The total monthly active users is the total number of unique users that have opened a WebSocket with a device and the Stream API at least once during the month. A user can connect multiple times and still count as only 1 MAU. This total is entirely reset every month.
The connection can be closed by calling the following function
Read more here
Peak Concurrent Connections
Peak Concurrent Connections is the point of time during the month at which there is the highest number of WebSockets connected to the Stream API for your applications in your organization. For example, if you had a traffic pattern such as
- Monday - 600 concurrently connected users
- Tuesday - 750 concurrently connected users
- Wednesday 700 concurrently connected users
Then the peak concurrent connections for the app over the three days would be 750.
You are not charged for
- Messages sent/stored
- Channels created
- Users added (and not logged in/opened a WebSocket connection)
- MAU resets each month
- If your organization exceeds any of these metrics, additional connections/MAU will not be blocked, but overage charges may occur