class ActionCable::Connection::ClientSocket

def finalize_close

def finalize_close
  return if @ready_state == CLOSED
  @ready_state = CLOSED
  @event_target.on_close(*@close_params)
end