-
Notifications
You must be signed in to change notification settings - Fork 2.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
io.on not sending console.log #11
Comments
tht is because you have removed console.log(" xyz") from the code as shown below: "io.on('connection', function(socket){ i am a newbie if i m worng let me know. Explanation appreciated. |
its because your scripts is below /body tag, put them above /body and everything will be just fine |
in index.html give form an id, like: in script part use #form instead of 'form', like: }); }); |
#arekan127 not put above,should be put below...
|
I have this in package
this in my html
this is in index.js
For some reason the io.on in index.js wasn't writing to console.log in the middle of tut. and i assumed it was something wrong with windows since alot of console.log doesn't show in CMD.
Anyways does anyone have clue as to why this isn't working? has something depreciated in socket.io that doesn't allow this tutorial to work anymore or is it something specific to windows machines? Thanks for your response
The text was updated successfully, but these errors were encountered: