Closed rodmi714 closed 3 years ago
Problem: 'session:request:initiated' is not triggered
Way to reproduce: Start a conversation using the chat widget, the event is not triggered.
This is the code I'm using:
'use strict' const TOKEN = { identifier: '<my-identifier>', key: '<my-key>' } let Crisp = require('node-crisp-api') let CrispClient = new Crisp() console.info('Authenticating...') CrispClient.authenticate(TOKEN.identifier, TOKEN.key) console.info('Listening for events...') CrispClient.on('session:request:initiated', function (message) { console.info("Got 'session:request:initiated' event:", message) }) console.info('Now listening.')
Hello!
Do you still have the same problem on last versions?
Problem: 'session:request:initiated' is not triggered
Way to reproduce: Start a conversation using the chat widget, the event is not triggered.
This is the code I'm using: