Sha256: 6324ba90824d081f93cfe70aa403e49259d0d5adcaeb0bf198fbdfac2b861395
Contents?: true
Size: 440 Bytes
Versions: 27
Compression:
Stored size: 440 Bytes
Contents
# frozen_string_literal: true # :markup: markdown 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
27 entries across 27 versions & 3 rubygems