Module: ActionCable::Connection::Authorization
- Included in:
- Base
- Defined in:
- actioncable/lib/action_cable/connection/authorization.rb
Defined Under Namespace
Classes: UnauthorizedError
Instance Method Summary collapse
-
#reject_unauthorized_connection ⇒ Object
Closes the WebSocket connection if it is open and returns an “unauthorized” reason.
Instance Method Details
#reject_unauthorized_connection ⇒ Object
Closes the WebSocket connection if it is open and returns an “unauthorized” reason.
9 10 11 12 |
# File 'actioncable/lib/action_cable/connection/authorization.rb', line 9 def logger.error "An unauthorized connection attempt was rejected" raise UnauthorizedError end |