Open igordeoliveirasa opened 9 years ago
I've been connecting successfully, however auth event never get called.
CONNECT success Client: 'USER igor------asa@gmail.com\r\n' Server: '+OK send PASS\r\n' Client: 'PASS ****\r\n' Server: '+OK Welcome.\r\n'
client.on("auth", function(status, data) { if (status) { console.log("LOGIN/PASS success"); client.list(10); } else { console.log("LOGIN/PASS failed"); client.quit(); } });
I've found out. It's because the right name of event should be 'login'. Sample needs to be changed. I'll try to update.
I've been connecting successfully, however auth event never get called.
LOGIN METHOD CONSOLE RESULT:
CONNECT success Client: 'USER igor------asa@gmail.com\r\n' Server: '+OK send PASS\r\n' Client: 'PASS ****\r\n' Server: '+OK Welcome.\r\n'
AUTH EVENT LISTENER DECLARATION
client.on("auth", function(status, data) { if (status) { console.log("LOGIN/PASS success"); client.list(10); } else { console.log("LOGIN/PASS failed"); client.quit(); } });