Initial simple client implementation
This commit is contained in:
parent
372187d275
commit
bcbd16f196
8 changed files with 538 additions and 0 deletions
19
example.js
Normal file
19
example.js
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
const { Client } = require('./src')
|
||||
|
||||
const client = new Client();
|
||||
|
||||
client.initialize();
|
||||
|
||||
client.on('qr', (qr) => {
|
||||
console.log('QR RECEIVED', qr);
|
||||
});
|
||||
|
||||
client.on('authenticated', () => {
|
||||
console.log('AUTHENTICATED');
|
||||
});
|
||||
|
||||
client.on('ready', () => {
|
||||
console.log('READY');
|
||||
client.destroy();
|
||||
});
|
||||
|
||||
Loading…
Reference in a new issue