function push(){ //To project A Gateway::$registerAddress = 'Address1:port'; Gateway::sentToUid('uid', 'msg'); //To project B Gateway::$registerAddress = 'Address2:port'; Gateway::sentToUid('uid', 'msg'); //To ...