Ins Posted July 11, 2019 Report Posted July 11, 2019 When working with your library there was a difficulty...How can i promise example here: botInfo = {}; client.logOn(logOnOptions); client.on('wallet', function(hasWallet, currency, balance) { botInfo.balance = balance; }); client.on('emailInfo', function(address, validated) { botInfo.emailAddress = address; botInfo.emailValidated = validated; }); console.log(botInfo); // i want to log data after fill info no one promise don't work.... Quote
Dr. McKay Posted July 11, 2019 Report Posted July 11, 2019 I suggest that you study up on JavaScript asynchronous callbacks. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.