Closed rcampion closed 2 years ago
Hi @rcampion ,
You should be able to keep a state from your application by listening to both onParticipantChatOpened
and onParticipantChatClosed
events.
How do I listen to these events?
On Thu, Mar 31, 2022 at 7:51 PM Rafael Carvalho @.***> wrote:
Hi @rcampion https://github.com/rcampion ,
You should be able to keep a state from your application by listening to both onParticipantChatOpened and onParticipantChatClosed.
— Reply to this email directly, view it on GitHub https://github.com/rpaschoal/ng-chat/issues/207#issuecomment-1085242529, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABBF7HVH4TU5M2S2HMCA2SLVCY27HANCNFSM5SDO6HWQ . You are receiving this because you were mentioned.Message ID: @.***>
-- Richard Campion @.*** http://www.richardcampion.com http://www.linkedin.com/in/richardcampion
Ok. I figured out hew to listen to onParticipantChatOpened and onParticipantChatClosed.
But Browser A will not know if Browser B has a chat window opened.
I will need to store this state info in either a database or use WebSocket
I realized Browser B does not need to know about Browser A.
All set.
Working fine.
Is there a way to test if a user's chat window is open?