arunoda / meteor-streams

Realtime messaging for Meteor
http://arunoda.github.io/meteor-streams
MIT License
287 stars 97 forks source link

Target a specific client from the server. #27

Open ashmore11 opened 9 years ago

ashmore11 commented 9 years ago

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!