The chat room is where the client sends information to the server, and then the server broadcasts the information to all clients. Therefore, if you stop monitoring the information in the server, the entire chat room may be suspended.
I have not developed such a commercial project, so I don't know the most correct way to solve this situation.
My idea is to send a message with a specific identifier in the server-side code, and then detect it in the client code, the identification is used to determine whether the original source of this information is other clients or the server itself.
If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.