LearnBoost/socket.io — Issue #694: why this error is coming 
Author: rahul23134
Created: 2011-12-19 07:25:30+00:00
State: open

I used the socket.io.client in my node script for making simulate browser client in my node.js, when i am including by io=require('./socket.io.client').io,

it is giving me this error :

node.js:178
throw e; // process.nextTick error, or 'error' event on first tick
^
TypeError: Cannot read property 'indexOf' of undefined
at /home/reach121/socket7youngib/lib/socket.io.client.js:1023:24
at Object. (/home/reach121/socket7youngib/lib/socket.io.client.js:1225:2)
at Module._compile (module.js:404:26)
at Object..js (module.js:410:10)
at Module.load (module.js:336:31)
at Function._load (module.js:297:12)
at require (module.js:348:19)
at Object. (/home/reach121/socket7youngib/lib/youngib-client.js:3:4)
at Module._compile (module.js:404:26)
at Object..js (module.js:410:10)