ActionCable::Connection::Authorization
Namespace
Methods
R
Instance Public methods
reject_unauthorized_connection()

Closes the WebSocket connection if it is open and returns a 404 “File not Found” response.

# File actioncable/lib/action_cable/connection/authorization.rb, line 7
def reject_unauthorized_connection
  logger.error "An unauthorized connection attempt was rejected"
  raise UnauthorizedError
end