Hello,
I am currently testing to implement broadcasting, for simple activities within my application, like real time updates on Events.
Pusher is receiving Events, and subscribing to Channels. So this is working.
But now the actual magic, Echo, is not receiving those Events, and unfortunately nothing will be updated in Real-time.
I am using a vagrant/homestead VirtualBox setup:
vagrant up sets up my local development server, not php artisan serve
My local timezone:
Di 27 Nov 2018 13:55:13 CET
cd - Homestead -> vagrant up
sudo date: Di 27 Nov 2018 13:55:13 CET
vagrant ssh -> cd app
sudo date: Di 27 Nov 2018 12:55:13 UTC
(configured via sudo dpkg-reconfigure tzdata, to fit the Pusher 'eu' Cluster)
Pusher is receiving Events (UTC)
App\Events\BroadcastTest :: 12:55:13
The echo Library, I guess is working. If I e.g. trigger on Chrome:
window.Echo.join('Chat')
It returns:
PusherPresenceChannel {name: "presence-Chat", pusher: Pusher, options: {…}, eventFormatter: EventFormatter, subscription: PresenceChannel}
So in Pusher I am basically receiving Events in the future, this must be the reason why echo is not working, correct?
I also tried to change my local timezone (browser) to UTC, and also the Server (vagrant ssh cd/app) to UTC, to fit the pusher 'eu' cluster UTC timezone.
Also always clearing the config, encrypted is set to false, and the keys are provided.
Should I setup a echo server, to overcome the timezone problems?
We already started a conversation on this problem, but I wanted to sum the timezone idea, with this thread in mind: https://laracasts.com/discuss/channels/laravel/echolisten-is-not-working-logging
What would you recommend in this case, I hope I could make my thoughts clear, if not please ask.
Really looking forward for your ideas.