ActionCable::Connection::Authorization Ruby on Rails 5.1.2 Module ActionCable::Connection::Authorization actioncable/lib/action_cable/connection/authorization.rb Namespace CLASS ActionCable::Connection::Authorization::UnauthorizedError Methods R reject_unauthorized_connection Instance Public methods reject_unauthorized_connection() Link Closes the WebSocket connection if it is open and returns a 404 “File not Found” response. Source: show | on GitHub # File actioncable/lib/action_cable/connection/authorization.rb, line 7 def reject_unauthorized_connection logger.error "An unauthorized connection attempt was rejected" raise UnauthorizedError end