Saturday 6 May 2017

Is it the best way to use socket.io to send posts to a feed in a social network

How can we send a post content to only people who the user is friended with using socket.io, i read about namespaces and rooms but should we have to create a namespace for every single user and his friend and how can we listen to a specific users namespace when a new post is available.

Suppose x has 5 friends(a,b,c,d,e) how to connect to the namespace of x when any of the a,b,c,d,e are online/connected.



via Nandagiri Akhilesh

No comments:

Post a Comment