# File lib/action_cable/connection/authorization.rb, line 12defreject_unauthorized_connectionlogger.error"An unauthorized connection attempt was rejected"raiseUnauthorizedErrorend
Closes the WebSocket connection if it is open and returns an “unauthorized” reason.