reject_unauthorized_connection()click to toggle source
Closes the WebSocket connection if it is open and returns a 404 “File not Found” response.
# File lib/action_cable/connection/authorization.rb, line 9defreject_unauthorized_connectionlogger.error"An unauthorized connection attempt was rejected"raiseUnauthorizedErrorend