nl_tokens: Function handshake that test if the connection with the Warehouse micro - service is available
pl_tokens: function handshake ( param ) { return new Promise ( ( resolve , reject ) => { if ( types . isClientConfig ( param ) ) { logger_1 . logger . log ( 'info' , ` ` ) ; logger_1 . logger . log ( 'debug' , ` \n ${ JSON . stringify ( param ) } ` ) ; let socket = io . connect ( ` ${ param . warehouseAddress } ${ param . portSocket } ` ) ; socket . <mask> ( 'connect' , function ( ) { logger_1 . logger . log ( 'info' , ` \n ` ) ; resolve ( ) ; } ) . on ( 'connect_error' , function ( ) { logger_1 . logger . log ( 'debug' , ` \n ` ) ; reject ( ) ; socket . disconnect ( ) ; } ) ; } else { logger_1 . logger . log ( 'error' , ` \n ${ JSON . stringify ( config ) } ` ) ; reject ( ) ; } } ) ; }