LearnBoost/socket.io — Issue #636: "io is not defined" with nodejs06 Windows
Author: mephistho
Created: 2011-11-11 13:15:54+00:00
State: open

Hi there,

since I'm forced to use a Windows-Webserver-System I'm using nodejs06 for Windows as well (Cygwin is no real option in my setup).
To be able to re"require" the socket.io.js cloned from the socket.io.js-github-repository I had to clone the socket.io-client-repository as well since it is required in socket.io and I cannot use npm to install the whole thing. Now socket.io-client seems to be defined in socket.io but but now I'm stuck on an error of socket.io-client in there. It sais

"ReferenceError: io is not defined
at Object.\ (path\to\socket.io-client\lib\socket.io-client.js:1:63)"

I can't see how to fix this at the moment, since "io" is instanciated in io.js as

var io = exports;

Would be grateful for any kind of hint!
Cheers,
Andreas