JS / Browser Client - Build Chat with GetStream.io
New api endpoint for unread count #1117 This endpoint is not enabled for every org, and if needed can be requested by getting in touch with [email protected]
const client = StreamChat.getInstance('key');
client._setToken({ id: 'vishal' }, 'my_token');
const response = await client.getUnreadCount();
const client = StreamChat.getInstance('key', 'secret');
const response = await client.getUnreadCount('vishal');