Closed zvermafia closed 7 years ago
There were not problems with node.js, socket.io or HTTPS. There is problem with the Laravel or Redis... I required the predis/predis package to work with Redis and set redis as broadcast driver (and cache driver is file). But broadcasting works like the broadcast driver parameter was set log...
P.S. I also tried artisan config:clear
, but unseccessful...
Solved the problem with clearing all data in redis redis-cli flushall
. Because I was use redis for caching before using for broadcasting.
I saw the lessons Real-time Laravel with Socket.io and made a little different project and it works fine on homestead (local machine). But on production server wich was provisioned with the Forge and works via HTTPS protocol it doesn't work!
To the moment I tried:
socket.js
is:The client side script is: