title: How to add custom events to tornado
body: <p>I have a tornado application that will serve data via websocket.
  I have a separate blocking thread which is reading input from another application and pushing an object into a Queue and another thread which has a blocking listener to that Queue.</p>
  
  <p>What I would like is for the reader thread to somehow send a message to tornado whenever it sees a new item in the Queue and then tornado can relay that via websocket to listening clients.</p>
  
  <p>The only way I can think to do this is to have a websocket client in the reader thread and push the information to tornado via websocket. However it seems that I should be able to do this without using websocket and somehow have tornado listen for non websocket async events and then call a callback.</p>
  
  <p>But I can't find anything describing how to do this.</p>