title: Send extra information on Websocket connection creation
body: <p>Currently i'm working on Websocket, and i need to send the some data like user id while made a Websocket connection.
  And i found the solution such as we can send the value at the end of the Websocket connection url</p>
  
  <pre><code>ws:/localhost:10001/websocket/server.php/456
  </code></pre>
  
  <p>But they use Node.js in their code. They read the 456 by</p>
  
  <pre><code>websocket.upgradeReq.url
  </code></pre>
  
  <p>How to do without Node.js.
  It will send the out value 456 in the Request URL of the http request.
  And my doubt is how to read that value in server.php. Here server.php handle all the client requests by my custom logic. And i'm try to assign the socket connection which created in server.php to the current value parameter(456) like</p>
  
  <pre><code>$clients['456'] = $socketConnection;
  </code></pre>
  
  <p>Can any one please give the solution. Thanks in advance</p>