title: Tornado WebSocket Question
body: <p>Finally decided to go with Tornado as a WebSocket server, but I have a question about how it's implemented. </p>
  
  <p>After following a basic tutorial on creating a working server, I ended up with this:</p>
  
  <pre><code>#!/usr/bin/env python
  
  from tornado.httpserver import HTTPServer
  from tornado.ioloop import IOLoop
  from tornado.web import Application
  from tornado.websocket import WebSocketHandler
  
  class Handler(WebSocketHandler):
          def open(self):
              print "New connection opened."
  
          def on_message(self, message):
                  print message
  
  
          def on_close(self):
                  print "Connection closed."
  
  print "Server started."
  HTTPServer(Application([("/", Handler)])).listen(1024)
  IOLoop.instance().start()
  </code></pre>
  
  <p>It works great and all, but I was wondering if the other modules (tornado.httpserver, tornado.ioloop, and tornado.web) are actually needed to run the server.</p>
  
  <p>It's not a huge issue having them, but I just wanted to make sure there wasn't a better way to do whatever they do (I haven't covered those modules at all, yet.).</p>