I am working on https://prodocs.cometchat.com/docs/js-messaging-send-message api

whn i call this method, sometimes login works and sometimes i am unable to login , so method is not called without login, let me know the solution, it is happening frequently, or let me know how can i implement Javascript SDK

Hello @Priyanka09,

I am unable to understand your query. Please refer to our ReactJS sample app if you want to know how you can implement the SDK. I am sharing the link to our sample app below.