cherrypick/packages/backend/check_connect.js