method

reject_unauthorized_connection

rails latest stable - Class: ActionCable::Connection::Authorization
reject_unauthorized_connection()
public

Closes the WebSocket connection if it is open and returns an “unauthorized” reason.