Closed spekulatius closed 3 years ago
If you use 'useTLS' => true,
, make sure as well to set 'scheme' => 'https'
instead of http
Hello @rennokki,
I've tried to set the scheme to https
, but it didn't resolve the issue. Any other configuration issues standing out?
Also, would you know where exactly the parameters are passed in? I could check they maybe not passed through correctly.
Thank you! Your help is highly appreciated!
Cheers, Peter
Downgrade pusher/pusher-php-server to 4.1.3
Hey @rennokki, just tried it. The issue is still there, same message - no change.
This is usually common and can be solved by:
scheme
to https
and setting up curl_options
like below if you set up the paths for SSL certificate & private key.
'scheme' => 'https',
'curl_options' => [
CURLOPT_SSL_VERIFYHOST => 0,
CURLOPT_SSL_VERIFYPEER => 0,
],
scheme
to http
and not use useTLS
at all if you are using HTTP (for local testing i.e.)Yaaaay! 🎉️ The curl options fixed it! Thank you so much for your help getting this solved!
This is usually common and can be solved by:
- Making sure you set
scheme
tohttps
and setting upcurl_options
like below if you set up the paths for SSL certificate & private key.'scheme' => 'https', 'curl_options' => [ CURLOPT_SSL_VERIFYHOST => 0, CURLOPT_SSL_VERIFYPEER => 0, ],
- Set
scheme
tohttp
and not useuseTLS
at all if you are using HTTP (for local testing i.e.)
where is the setting file ı coulden t find
@NurullahDemirel you need to make the changes in the broadcasting.php file
Hey @rennokki,
after some work with @myckhel I've got the web-sockets mostly working. The frontend connects to the socket server.
One issue remains: The backend application fails to connect to the running web-sockets server (on prod only). The error message is
Failed to connect to Pusher.
Tried/Checked:
Configuration
.env
config/broadcasting.php
config/websockets.php
Versions I'm using:
PHP
Node
Any help is highly appreciated! Have a good weekend!
Cheers, Peter