title: How to make websocket authentication?
body: <p>I work on web application and I want to have live notifications to a user via websockets. These notifications should be received only by a user whose notifications belong to.
  I wonder if it's good idea to pass an temporary authentication token (which would be unique for a user) to javascript and the script connects to websocket server and pass the authtoken as a parameter to make a handshake. Is it secure solution to pass auth token to javascript and then login via websocket using this authentication token? Of course web app is secured by ssl and web socket server also.</p>