Skip to Content Skip to Search
v7.1.0
module ActionCable::Connection::Authorization
Methods
R

Public instance methods

reject_unauthorized_connection()

Permalink

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 9
def reject_unauthorized_connection
  logger.error "An unauthorized connection attempt was rejected"
  raise UnauthorizedError
end
Namespace
Definition files