Laravel-Realtime-Chat
Laravel-Realtime-Chat copied to clipboard
Problem with sync messages.
Hi, My example run very well, but the message between persons in different browser it's not synchonize. Example in browser A sent message but in browser B didn't show this message just sent. But when I'm typing still show "person's typing". Can u have me about this?
I have the same exact same issue, any possible fix?
@ntnhieu @solancer Are you guys able to see any javascript errors in the browser console? Also when you submit a message, are you able to see an event occurring on the console running command laravel-echo-server start
Most probably it should be a missing or wrong configuration issue.
Thanks
I was able to fix it by changing QUEUE_DRIVER=sync in the .env file. I've sent a pull request to save you some time on updating the readme file.
Hey guys,
Glad you could make it working. But the setting queue driver to redis was intentionally as in real life scenarios it would help a lot in terms of performance.
https://laravel.com/docs/5.5/events#queued-event-listeners
So if you want to use queue, you just need to set queue driver to redis and
need to keep running queue listener command php artisan queue:wok
in the
background. I would suggest you to use supervisor for that:
https://laravel.com/docs/5.5/queues#supervisor-configuration
Will add both ways into readme file i.e using queue and without using queue.
Thanks On 3 Dec 2017 5:00 a.m., "Srinivas Gowda" [email protected] wrote:
I was able to fix it by changing QUEUE_DRIVER=sync in the .env file. I've sent a pull request to save you some time on updating the readme file.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/xparthxvorax/Laravel-Realtime-Chat/issues/4#issuecomment-348728139, or mute the thread https://github.com/notifications/unsubscribe-auth/AEC5u_Jml-i_EyzZjpz_ybwjy1rM29_wks5s8d2dgaJpZM4PFlTn .