title: WebSockets authentication
body: <p>What are the possible ways to authenticate user when websocket connection is used?</p>
  
  <p>Example scenario: Web based multi-user chat application through encrypted websocket connection. How can I ensure (or guarantee) that each connection in this application belongs to certain authenticated user and "can't be" exploited by false user impersonation during the connection.</p>