title: Run socket.io client code on nodejs
body: <p>I am developing a chat application using the nodejs/socket.io on the server side</p>
  
  <p>Now, it is time to test how scalable it is</p>
  
  <p>so, i think i can simulate a large number of soket.io clients effectively using nodejs also , but running the client code this time</p>
  
  <p>the question is, How can i run the socket.io client library on nodejs? is this possible?
  if so, can anyone please provide a simple example</p>
  
  <p>my code is running fine on the browser, with the usual development load, the issue is not about the code is running or not, actually i am not planning to run the same client code, just openning a large number of connections , and sending thousands of messages to have a preliminary figure about scalability and resource consumption</p>
  
  <p>also, any suggestion on testing socket.io server scalability will be appreciated</p>
  
  <p>thanks a lot</p>