onMessageEvent in freshchat is not triggering

Hi Team,

I have a requirement to catch up a message posted, either by the agent or user for that i am using “onMessageCreate” event.But on message create event is not triggering.

Here is the code for detail.

    exports = { 
      events: [{ event: "onMessageCreate", callback: "onMessageCreateCallback" }],
    onMessageCreateCallback: function(payload) {
     console.log("Logging arguments from onMessageCreate event: " + JSON.stringify(payload));
  }
}

Thanks,
Tipuranjali.

It is possible that there might have been a delay in delivering the messageCreate event during that time.
Could you check the logs to see if the event was received, albeit delayed?

Hi @arunrajkumar235,
Thanks for your response.
After posting a message i waited for around 1 hr and checked correctly but it is not working.

Thanks,
Tipuranjali.