如果 WebSocket 连接处于打开状态,则关闭该连接并返回“未授权”原因。
来源: 显示 | 在 GitHub 上
# File actioncable/lib/action_cable/connection/authorization.rb, line 9 def reject_unauthorized_connection logger.error "An unauthorized connection attempt was rejected" raise UnauthorizedError end