Module: ActionCable::Connection::Authorization
Relationships & Source Files | |
Namespace Children | |
Exceptions:
| |
Extension / Inclusion / Inheritance Descendants | |
Included In:
| |
Defined in: | actioncable/lib/action_cable/connection/authorization.rb |
Instance Method Summary
-
#reject_unauthorized_connection
Closes the WebSocket connection if it is open and returns a 404 “File not Found” response.
Instance Method Details
#reject_unauthorized_connection
Closes the WebSocket connection if it is open and returns a 404 “File not Found” response.
# File 'actioncable/lib/action_cable/connection/authorization.rb', line 9
def logger.error "An unauthorized connection attempt was rejected" raise UnauthorizedError end