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