Hi can some one help I am trying to make webscokets with laravel sail I have added port
laravel.test:
build:
context: ./vendor/laravel/sail/runtimes/8.2
dockerfile: Dockerfile
args:
WWWGROUP: '${WWWGROUP}'
image: sail-8.2/app
extra_hosts:
- 'host.docker.internal:host-gateway'
ports:
- '${APP_PORT:-80}:80'
- '${VITE_PORT:-5173}:${VITE_PORT:-5173}'
- '6001:6001'
and then I run the command : sail artisan webscoket: serve
it is connected : 1234: connection id 491953719.155301727 received message: {"event":"pusher:ping","data":{}}.
but when I try to do some event handling I get folllowing error
Pusher error: cURL error 6: Could not resolve host: websocket (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for http://websocket:6001/apps/1234/events?auth_key=1234&auth_timestamp=1695376112&auth_version=1.0&body_md5=7fd3c1816b62a5cf7278fcf3fdb102f1&auth_signature=731432d1c8aef064a0bec7bb22a7ac5dcb91212513c0f85a49700cbcd904e730. (Ln: 164/F: /var/www/html/vendor/laravel/framework/src/Illuminate/Broadcasting/Broadcasters/PusherBroadcaster.php)