Closed arthurd2 closed 1 week ago
On create() I've replaced the:
.then( client => { client.onAnyMessage( processMessage(message,client)) )} );
for
.then(client => start(client));
async function start(client) {
client.onAnyMessage(async message => processMessage(message,client) )
}
Are you using the latest version of the library?
What type of session are you experiencing this issue on?
Multi-device and I have set multiDevice to true in my config OR am using the --multi-device flag
What type of host account are you experiencing this issue on?
Personal account (normal)
Mode
EASY API/CLI
Current Behavior
After QR code authentication, the app works, waiting for a message. After this first message it dies complaining about an calling a FN variable which is not a function. (image attached)
Expected Behavior
receive and print messages on the console
Steps To Reproduce
async function processMessage( message ){ if ( message ) { console.log( message ); } }
Environment
Screenshots/Logs
Anything else?
No response