title: tornado can upgrade only to websocket error
body: <p>I am using tornado for realtime application. I am using redis for this.
  When I access the url <code>127.0.0.1:8888/2/</code> where 2 is my user id I get error saying <code>can "Upgrade" only to websocket</code>.</p>
  
  <p>I dont know why I am getting this error. This error came because of my code or some issue with websocket ?</p>
  
  <p>On my javascript i am doing <code>ws = new WebSocket("ws://127.0.0.1:8888/" + user_id + "/");</code></p>
  
  <p>when i do <code>127.0.0.1:8888</code> it prints what i am printing in get() function in RequestHandler</p>
  
  <p>Need advice</p>