I am writing a python real-time chat function built into a web application. I am a bit confused about real-time implementation. I need to click messages in real time for different users.
I plan to use websocket, but I'm not quite sure how to store these sockets in an array so that after a user sends a message to the server, the server can find the corresponding socket and click the message.
Do you know about this? Or what is the general way to implement the live chat feature?
Thanks in advance.
source share