ActionCable::Connection::Authorization

module ActionCable::Connection::Authorization

Public Instance Methods

reject_unauthorized_connection() Show source

Closes the WebSocket connection if it is open and returns a 404 “File not Found” response.

# File actioncable/lib/action_cable/connection/authorization.rb, line 7
def reject_unauthorized_connection
  logger.error "An unauthorized connection attempt was rejected"
  raise UnauthorizedError
end

© 2004–2017 David Heinemeier Hansson
Licensed under the MIT License.

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部