-
Notifications
You must be signed in to change notification settings - Fork 10.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
require socket.io.js? #37
Comments
Now it's possible to require socket.io/ and socket.io/lib/socket.io/ and they will both work. Is this what you were talking about ? (http://github.com/LearnBoost/Socket.IO-node/commit/4bec17e903be14bf801058b8990c565356c2512a) |
My main point was an inconsistency in the documentation when it comes to 'require'. Answering the issue "no socket.io.js in lib" cleared this up already, but I recommend to update the page here: http://socket.io/. |
Encode into binary only if needed
There's some discouraging difference between the example (which is running fine) and the example-code in the docs when it comes to require:
The readme shows './path/to/socket.io', which is a placeholder and probobly not meant to point to the socket.io-folder. The HowTo on the homepage shows './socket.io/socket.io.js', which is not existing.
Can someone clear this up, please ;) A working example would be nice, which doesn't require index.js.
The text was updated successfully, but these errors were encountered: