blob: 989a67d6df2a63376014843c516b4449a5631a27 (
plain) (
tree)
|
|
module ActionCable
module Connection
module Authorization
class UnauthorizedError < StandardError; end
# Closes the \WebSocket connection if it is open and returns a 404 "File not Found" response.
def reject_unauthorized_connection
logger.error "An unauthorized connection attempt was rejected"
raise UnauthorizedError
end
end
end
end
|