.Chat.endSession()

This API lets you end any open chat within the SDK using its reference ID.

Usage:

CopiedZohoSalesIQ.Chat.endSession(referenceID: "941")

Example: Objective C

Copied int count = [[ZohoSalesIQ Chat]getUnreadMessageCount];

Example: Swift

Copied let count = ZohoSalesIQ.Chat.getUnreadMessageCount()