[services/core/onconnect] hookcontext-mode support for onconnect