Problem
The developer is using the joinUserList and leaveUserList properties from the PresenceEvent() callback to display the live user count during live streaming.
Solution
The developer should use the getOnlineUsers method, and set both includedUserId and includedState to true, to get a list of online users in a channel. This method will return either a list of online user IDs and their temporary status data or just the number of online users in the channel, depending on their parameter settings. Once he has has the initial list of online users, they can keep it updated in real time through presence event notifications.
Reference: