nl_tokens: rename jobCompleted - > storeDone
pl_tokens: function storeJob ( jobCompleted ) { // if jobCompleted is jobFootPrint let emitterStore = new EventEmitter ( ) ; let socketStoreJob = io . connect ( urlSocket ) ; let msg = messageBuilder ( jobCompleted , 'storeJob' , true ) ; socketStoreJob . on ( 'connect' , function ( ) { socketStoreJob . emit ( 'storeJob' , msg ) ; } ) . on ( 'addingResponse' , ( messageRes ) => { logger_1 . logger . <mask> ( 'info' , ` ` ) ; //logger.log('info', `Message receive from server (add job request) \n ${JSON.stringify(messageRes)}`); logger_1 . logger . log ( 'debug' , ` \n ${ JSON . stringify ( messageRes ) } ` ) ; if ( messageRes . value === 'success' ) emitterStore . emit ( 'addSuccess' , messageRes ) ; if ( messageRes . value === 'errorAddjob' ) emitterStore . emit ( 'addError' , messageRes ) ; } ) ; return emitterStore ; }