Correct the description for reject_unauthorized_connection

This commit is contained in:
Erol Fornoles 2022-08-08 09:22:53 +08:00
parent aa00ef35eb
commit 69c8b6b3d1
No known key found for this signature in database
GPG Key ID: 92BC944D45D9278A

@ -5,7 +5,7 @@ module Connection
module Authorization
class UnauthorizedError < StandardError; end
# 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.
def reject_unauthorized_connection
logger.error "An unauthorized connection attempt was rejected"
raise UnauthorizedError