Closed NafeesKhabir closed 1 year ago
Found any solution? I am facing the same problem.
Found any solution? I am facing the same problem.
Yes created separate service and modified service file to solve this. Now Working great
@NafeesKhabir Can you show me example, please.
Stuck at Starting the WebSocket server on port 6001...
Configs are as follows
.env
PUSHER_APP_ID=live PUSHER_APP_KEY=live PUSHER_APP_SECRET=live PUSHER_APP_CLUSTER=mt1
LARAVEL_WEBSOCKETS_HOST="server.example.xyz" LARAVEL_WEBSOCKETS_PORT=6001 LARAVEL_WEBSOCKETS_SSL_LOCAL_CERT="/etc/letsencrypt/live/server.example.xyz/fullchain.pem" LARAVEL_WEBSOCKETS_SSL_LOCAL_PK="/etc/letsencrypt/live/server.example.xyz/privkey.pem" LARAVEL_WEBSOCKETS_SSL_PASSPHRASE= null
nginx
map $http_upgrade $type { default "web"; websocket "ws"; }
server {
}
server { if ($host = server.example.xyz) { return 301 https://$host$request_uri; } # managed by Certbot
}
Laravel 9
pusher-php-server:7.0.2
tried using both port 6001 and 443 https://example.fscd.xyz/laravel-websockets Also checked database during starting websocket it is not writing any event in database but during websocket:clean command it is giving following error SQLSTATE[HY000] [1045] Access denied for user 'exd_user'@'localhost' (using password: YES) (SQL: delete from
websockets_statistics_entries
wherecreated_at
< 2023-06-18 16:19:48)