core/app_connector.js
function () {

	LOG.warn('appinfo sent to lobby:');
	LOG.warn(l_appinfo);
	
    // notify AppManager we're ready
    l_notifyLobby('SR_APP_READY', l_appinfo, 'SR_APP_READY_RES',
        function (event) {

            if (event.data.op === true)
                LOG.sys('SR_APP_READY returns ok', 'l_HandlerPool');
            else
                LOG.error('SR_APP_READY returns fail', 'l_HandlerPool');

			// call onDone if exists (but just once)
            if (l_onDone) {
				UTIL.safeCall(l_onDone);
				l_onDone = undefined;
			}			
        }
    );
}
function () {

	LOG.warn('appinfo sent to lobby:');
	LOG.warn(l_appinfo);
	
    // notify AppManager we're ready
    l_notifyLobby('SR_APP_READY', l_appinfo, 'SR_APP_READY_RES',
        function (event) {

            if (event.data.op === true)
                LOG.sys('SR_APP_READY returns ok', 'l_HandlerPool');
            else
                LOG.error('SR_APP_READY returns fail', 'l_HandlerPool');

			// call onDone if exists (but just once)
            if (l_onDone) {
				UTIL.safeCall(l_onDone);
				l_onDone = undefined;
			}			
        }
    );
}
function ( ) { LOG . warn ( 'appinfo sent to lobby:' ) ; LOG . warn ( l_appinfo ) ; // notify AppManager we're ready l_notifyLobby ( 'SR_APP_READY' , l_appinfo , 'SR_APP_READY_RES' , function ( event ) { if ( event . data . op === true ) LOG . sys ( 'SR_APP_READY returns ok' , 'l_HandlerPool' ) ; else LOG . error ( 'SR_APP_READY returns fail' , 'l_HandlerPool' ) ; // call onDone if exists (but just once) if ( l_onDone ) { UTIL . safeCall ( l_onDone ) ; l_onDone = undefined ; } } ) ; }
register myself as a app to app manager do it after connector init success
register myself as a app to app manager do it after connector init success