Sha256: b2415e5e4ab2253e5a4c2958eb43f85058cf01ec5e8bd215844e4f84a6d511dc
Contents?: true
Size: 411 Bytes
Versions: 18
Compression:
Stored size: 411 Bytes
Contents
# frozen_string_literal: true module ActionCable module Connection module Authorization class UnauthorizedError < StandardError; end # 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 end end end end
Version data entries
18 entries across 18 versions & 4 rubygems