I have seen ActionCable.server.open_connections_statistics
, ActionCable.server.connections.length
, ActionCable.server.connections.map(&:s
If using redis
you can see all the pubsub channels.
[2] pry(main)> Redis.new.pubsub("channels", "action_cable/*")
[
[0] "action_cable/Z2lkOi8vbWFvY290LXByb2plL3QvUmVzcG9uXGVyLzEx",
[1] "action_cable/Z2lkOi8vbWFvY290LXByb2plL3QvUmVzcG9uXGVyLzI"
]
This will show all websocket connections for all the Puma workers together. And if you have multiple servers it will probably show those here too.