List channels with active connections

Hi,
I wonder if there’s a way to list all channels that have an active connection on a pushpin instance. I don’t need to do this programmatically, it’s just for debugging. I tried to see what tools/monitorsubs.py returns but I’ve not been able to make it work. I can see (in the logs) there are many other “servers” I could inspect but I need advice.

Regards.

You’ll want to use tools/monitorsubsock.py. Unlike monitorsubs.py, it’ll output all current subscriptions immediately.

% python tools/monitorsubsock.py tcp://127.0.0.1:5562
SUB a
SUB b
SUB c

It’ll also hang open to output any subscription changes, but you can just ctrl-c if all you wanted to see was the current set.

2 Likes

Oh, that’s exactly what I was looking for. I’ll try it tomorrow, thank you!

Thanks for the update… Will look over these & i’m looking for info related to python. Thanks for sharing with us