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.io won't send/receive messages from server/client #1

Open
sebasblancogonz opened this issue Oct 4, 2019 · 0 comments
Open

Comments

@sebasblancogonz
Copy link
Owner

sebasblancogonz commented Oct 4, 2019

When sending a message throgh socket.io-client or socket.io, the listener won't receive any message. E.g: On the client project, when adding a new todo, I send a message to the Socket with "socket.io.emit('todoAdded', todo)" but my server project, listening with "req.app.io.on('todoAdded', todo => {})" won't work. Both libraries are listening to the port 3000, this is the port where the server is running.

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

1 participant