title: socket.io-client how to set request header when making connection
body: <p>I'm trying to set a http header when socket.io client makes the connection request. Is there a way to do this?</p>
  
  <p>Here is what i'm doing:</p>
  
  <pre><code>// server side
  var io = socketio(server);
  
  io.use(function (socket, next) {
    // authorize using authorization header in socket.request.headers
  });
  
  // client side
  var socket = io();  // i'm trying to set an authorization header in this http reqeust
  </code></pre>
  
  <p>Any ideas? Thanks.</p>