Update index.js

I have added some piece of code to specify the transport type in arguments. It will be useful to do the benchmark with primus and engine.io (or other)..