{
    "mode": "ri",
    "parameter": "ActionCable::RemoteConnections",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/ri/ActionCable%3A%3ARemoteConnections/json",
    "generated": "2026-07-24T08:21:31Z",
    "sections": {
        "ActionCable::RemoteConnections < Object": {
            "content": "(from /home/chedong/.local/share/rdoc)\n------------------------------------------------------------------------\nIf you need to disconnect a given connection, you can go through the\nRemoteConnections. You can find the connections you're looking for by\nsearching for the identifier declared on the connection. For example:\n\nmodule ApplicationCable\nclass Connection < ActionCable::Connection::Base\nidentifiedby :currentuser\n....\nend\nend\n\nActionCable.server.remoteconnections.where(currentuser: User.find(1)).disconnect\n\nThis will disconnect all the connections established for User.find(1),\nacross all servers running on all machines, because it uses the internal\nchannel that all of these servers are subscribed to.\n------------------------------------------------------------------------",
            "subsections": []
        },
        "Class methods:": {
            "content": "new\n",
            "subsections": []
        },
        "Instance methods:": {
            "content": "server\nwhere\n",
            "subsections": []
        },
        "Attributes:": {
            "content": "attrreader server\n",
            "subsections": []
        }
    },
    "flags": [],
    "examples": [],
    "see_also": []
}