We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c54b26d + 69c8b6b commit 67ab4c3Copy full SHA for 67ab4c3
actioncable/lib/action_cable/connection/authorization.rb
@@ -5,7 +5,7 @@ module Connection
5
module Authorization
6
class UnauthorizedError < StandardError; end
7
8
- # Closes the WebSocket connection if it is open and returns a 404 "File not Found" response.
+ # Closes the WebSocket connection if it is open and returns an "unauthorized" reason.
9
def reject_unauthorized_connection
10
logger.error "An unauthorized connection attempt was rejected"
11
raise UnauthorizedError
0 commit comments