Closed gleitz closed 8 years ago
This would be a really interesting thing to include in this extension. I think (if done correctly) it would mesh well with Flask's design philosophies.
Here's how to do this today:
https://github.com/heroku-examples/python-websockets-chat/blob/master/chat.py#L28
Currently the echo server receives a message from one particular client and sends a response back to that client.
What would need to be done to have the server send the message to all connected sockets on that route? Does gevent-websocket store that data somewhere?