nahid / talk

Talk is a real-time users messaging and chatting system for Laravel.
MIT License
1.61k stars 327 forks source link

How to detect if new message has come? #112

Closed SerikK closed 6 years ago

SerikK commented 6 years ago

Hi. Good extension. But I have some problems. I need to show to users that somebody recently received new message in my application. How I can do that?

nahid commented 6 years ago

Query by updated_at in conversations table

SerikK commented 6 years ago

Thanks for reply. But how I can do in real time?

nahid commented 6 years ago

Why you need this?

SerikK commented 6 years ago

In general, our tech support answers to user questions. Users write to the chat. If user's waiting is too long, obviously they would leave our website. Or users chat with each other in order to communicate. They need fast messaging to do actions, deals and so on. We need so much that.

SerikK commented 6 years ago

Decided to implement like this https://pusher.com/tutorials/realtime-notifications

nahid commented 6 years ago

Talk is also Pusher ready with realtime chat. I think our doc will help you.

SerikK commented 6 years ago

I decided to integrate their notification solution into talk