Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

youcefkacem's avatar

websockets connection failed

hello , i installed laravel reverb with my application after the installation is done it show me websocket connection failed in the console

i did not change anything all the settings is by default am using docker with laravel sail keep in mind i run sail artisan reverb start and nothing work with me

if someone have any idea please help me

1 like
2 replies
youcefkacem's avatar
youcefkacem
OP
Best Answer
Level 1

i fixed the issue by adding the following configuration in docker-compose.yml file

        - '${REVERB_SERVER_PORT:-8080}:8080'

make sure to add that in the docker compose file to use the port

now everything is fine

4 likes

Please or to participate in this conversation.