whatsapp icon indicating copy to clipboard operation
whatsapp copied to clipboard

method to received new message

Open wagnerfillio opened this issue 5 years ago • 0 comments

Hello, this application is very good.

I am trying to use it for one user to send a message and the other user to receive it.

I have an application running on JQuery and Socket IO and it works fine.

But your code is cleaner, although I do not understand much about pure javascript.

I've already connected your application with the database.

My question is.

Which method can I use to retrieve a new received message?

At first, I added an event to simply fetch a new message, but I still do not know which method to call.

element.addEventListener ("click", function () {alert ("getNewMessage!");});

wagnerfillio avatar Mar 13 '19 15:03 wagnerfillio