Live chat functionality

Hi, I need to implement a live chat functionality on my filament app. I've made a Livewire page/component to display the chat tab. The chat should be from user to user, not general (never general). I'm wondering if I should go about implementing this using Pusher & Laravel Echo or if I should just make http based messaging. Have any of you implemented something like this? What would you suggest? The chat should be able to scale to some degree (definitely less than the Pusher free tier though). I suppose this is more of a Laravel question in general, but as a solo dev it's hard to tell the what best approach is at times. Any input is appreciated!
2 Replies
Dennis Koch
Dennis Koch13mo ago
Depends on your needs and how many users will use it. You can start with long polling. If that doesn’t fit swap to sockets.
Kanalaetxebarria
KanalaetxebarriaOP13mo ago
Thanks! I'm gonna go for sockets out of the box. Better to overkill than having to change stuff in production
Want results from more Discord servers?
Add your server