abourget / gevent-socketio

Official repository for gevent-socketio
http://readthedocs.org/docs/gevent-socketio/en/latest/
BSD 3-Clause "New" or "Revised" License
1.21k stars 331 forks source link

How to broadcast data to a room (of socket io) when the server receives data from somewhere else (not using socket io) #226

Open yhpoh91 opened 9 years ago

yhpoh91 commented 9 years ago

May I know how to emit a broadcast to a room of gevent socket io when the data is not triggered by a socket? My data comes from another part of my program which listens to data changes from an external server which does not use socket io. After processing those data I would like to broadcast it to everyone in the same room but I have no idea on how to do that. Is there a way to get an instance of the namespace itself so that I can emit a broadcast?