title: Creating a real-time chat with Python and websocket
body: <p>I'm writing a python real-time chat feature embedded in a web app. I'm a little bit confused on the real time implementation. I need to push real time message to different users.</p>
  
  <p>I plan to use websocket but I'm not quite sure how to save those sockets into an array so that once a user send a message to server, the server can find the related socket and push the message.</p>
  
  <p>So any idea about this? Or what's the common way to implement real time chat feature?</p>
  
  <p>Thanks in advance.</p>