I would like to use the Tornado web server to connect to a HTTP stream like the Twitter Stream and serve the streamed data via websockets to a web client.
I’ve got both working seperatly, one Tornado instance using twitstream and the other using tornado.websocket.WebSocketHandler, but i would like both services combined in one Tornado instance.
If you start a separate thread and use that thread to push messages to the WebSocket listeners, that will solve your problem