Skip to content
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

socket.on('chat message') does not get triggered #31

Open
amoharir opened this issue Jan 3, 2017 · 1 comment
Open

socket.on('chat message') does not get triggered #31

amoharir opened this issue Jan 3, 2017 · 1 comment

Comments

@amoharir
Copy link

amoharir commented Jan 3, 2017

I am able to successfully create socket connection and print chat message on Node.js console. Which confirms that sending message via socket works. However I am not able to make the
socket.on('chat message' event work on HTML.

Note: There is no error shown in browser console

@tnanthagopal
Copy link

Have you add the line
io.emit('chat message', msg);
on index.js?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants