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

clarify private messaging in the emit cheatsheet #3232

Merged
merged 1 commit into from
Apr 27, 2018

Conversation

darrachequesne
Copy link
Member

The kind of change this PR does introduce

  • a bug fix
  • a new feature
  • an update to the documentation
  • a code change that improves performance
  • other

Current behaviour

New behaviour

The previous version was confusing, as socket.to(socket.id).emit() does nothing.

Fixes #3220

Other information (e.g. related issues)

The previous version was confusing, as `socket.to(socket.id).emit()` does nothing.

Fixes socketio#3220
@darrachequesne darrachequesne merged commit 2917942 into socketio:master Apr 27, 2018
@darrachequesne darrachequesne deleted the docs/private-message branch April 27, 2018 10:50
dzad pushed a commit to dzad/socket.io that referenced this pull request May 29, 2023
The previous version was confusing, as `socket.to(socket.id).emit()` does nothing.

Fixes socketio#3220
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

Successfully merging this pull request may close these issues.

BUG: Emitting to specific socket IDs - won't emit to itself
2 participants