Remote Connections
wheremodule ApplicationCable
class Connection < ActionCable::Connection::Base
identified_by :current_user
# ...
end
end
# 查询、断开连接
ActionCable.server.remote_connections.where(current_user: User.find(1)).disconnectdisconnectidentifiers最后更新于