Skip to Content Skip to Search

module ActionCable::Connection::Authorization

Public instance methods

Closes the WebSocket connection if it is open and returns an “unauthorized” reason.

Source code 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

Namespace

Definition files