qruto / laravel-wave

Painless Laravel Broadcasting with SSE

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

No error gets thrown when the PHP Redis extension is disabled

Kyzegs opened this issue · comments

Usually, Laravel throws an error when the PHP Redis extension is disabled. It will show you the following message:

Please make sure the PHP Redis extension is installed and enabled.

Setting the BROADCAST_DRIVER to redis and having the PHP Redis extension disabled will not output this message. I did a fresh install of my PC and forgot to enable the PHP Redis extension, leading to running around for a while when no errors were getting thrown.

PHP Redis extension recommended, but not required. As described in Redis Introduction section, you can also use predis/predis package.

Also you will receive an error on wave request if you use the Redis extension and it is disabled.

Do you mean the one in the console? It only returned an error 500 for me. It's not explicit enough. There is no message attached to it or anything.

The 500 error is due to a lack of connectivity to Redis. You can find details in the response body or in the Laravel log file.

What kind of message do you expect and where?

Browser console shows client part errors. Redis connection issues are related to the server side.

If you would like to propose some additional behaviour, please reopen an issue with detailed description, cheers 😉