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

Target a specific client from the server. #27

Open
ashmore11 opened this issue Oct 31, 2014 · 0 comments
Open

Target a specific client from the server. #27

ashmore11 opened this issue Oct 31, 2014 · 0 comments

Comments

@ashmore11
Copy link

This is not really an issue but I can't seem find help anywhere else.

I'm creating a simple multiplayer pong game with 2 players.

Each player should only be able to control their respective paddle. So in theory I would send a message to client 1 saying 'control_paddle_one' to client 2 I would send 'control_paddle_two'.

I did this in socket.io by using io.sockets.socket(id).emit('message').

Is there a way to accomplish this using streams?

Thank you!

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