Answer the question
In order to leave comments, you need to log in
Why won't connect to WebSocket Workerman ssl daemon?
Have a web socket
$context = array(
'ssl' => array(
'local_cert' => '/etc/letsencrypt/live/domainname.ru/server.pem',
'local_pk' => '/etc/letsencrypt/live/domainname.ru/server.key',
'verify_peer' => false,
)
);
$ws_worker = new Worker('websocket://domainname.ru:8000', $context);
$worker->transport = 'ssl';
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question