I'm currently stuck in trying to send a notification from a client to another client. What I'm trying to do is a basic "typing indicator" for a chat app.
On the client, I'm storing the socket id of every user in his document on every visit / login:
Apparently, I still don't understand how streamy works. Streamy.on('typing', function (data, s) {} fires on the same client who is typing, but not on the other one currently logged in the same chat.
EDIT: Figured it out; for anyone having a similar issue: I've accidentally used Meteor.user() instead of the targeted user, in my case the chat partner.
I'm currently stuck in trying to send a notification from a client to another client. What I'm trying to do is a basic "typing indicator" for a chat app.
On the client, I'm storing the socket id of every user in his document on every visit / login:
On keyup, I'm running
and use a timeout function to emit "typingStop".
Apparently, I still don't understand how streamy works.
Streamy.on('typing', function (data, s) {}
fires on the same client who is typing, but not on the other one currently logged in the same chat.EDIT: Figured it out; for anyone having a similar issue: I've accidentally used Meteor.user() instead of the targeted user, in my case the chat partner.