php ratchet websocket SSL connect?

后端 未结 9 2212
遥遥无期
遥遥无期 2020-11-27 03:30

I have a ratchet chat server file

use Ratchet\\Server\\IoServer;
use Ratchet\\WebSocket\\WsServer;
use MyAppChat\\Chat;
require dirname(__DIR__) . \'/vendor/         


        
9条回答
  •  谎友^
    谎友^ (楼主)
    2020-11-27 03:52

    Apache also worked for me, just add in domain conf:

    ProxyPass /wss/ wss://127.0.0.1:8888/
    

    Reload apache and then it's import to set wss in client side to include /wss/ location

    wss://127.0.0.1/wss/
    

提交回复
热议问题