W
W
wilde-gard2018-06-20 16:49:00
PHP
wilde-gard, 2018-06-20 16:49:00

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';

But the client connects only via wss.
When connecting, WSS displays an error:
WebSocket connection to 'wss://domainname.ru:8000/?user=user1' failed: Error in connection establishment: net::ERR_SSL_PROTOCOL_ERROR
What could be the problem?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question