title: Separated websocket for each connected client
body: <p>I am planing to develop JavaScript client application that will connect to Java server using websocket. Server should handle many connected clients.
  After some reading I found out websocket single thread. This is not good if I want to run databases query that can block everything for a while.</p>
  
  <p>What I am thinking about is to opening separated websocket for each JavaScript client. One socket is listening for new connection and when connection is established creates some unique id. After that opens new websocket and send id to client using listener socket. When client received id close first socket and connect to new one. </p>
  
  <p>What do you think, is it good solution? Maybe I am missing something?   </p>