[FEATURE] Add connect to gateway function.