title: Socket.io 1.1 - How to sent data from client when connecting initially
body: <p>I want functionality similar to this</p>
  
  <p>Client</p>
  
  <pre><code>var socket=io.connect(url,data);
  </code></pre>
  
  <p>Server</p>
  
  <pre><code>io.on('connection',function(socket){
     //get data here in the socket object or in other way
  })
  </code></pre>
  
  <p>I know that the data can be obtained by emitting after connecting but I want to know whether there's a way to send data when connecting initially.</p>