I use Faye to send messages and it works well. But I want to get active connections for this channel, and everything will look different: see the " list of active subscribers on the channel ".
I want to show a list of current users chatting in the room. I tried to do this by intercepting the /meta/subscribe channel through extensions , but I'm not quite sure how to send data, such as username, server.
The intercepted message /meta/subscribe as follows:
{"channel"=>"/meta/subscribe", "clientId"=>"50k233b4smw8z7ux3npas1lva", "subscription"=>"/comments/new", "id"=>"2"}
It would be nice to send "username" => "foo" .
Monitoring is also interesting, but again, it seems like I cannot send any specific data to the subscription.
Does anyone have any experience with this?
source share