芝麻web文件管理V1.00
编辑当前文件:/home/qrafawbu/joolsmen.com/chat/server.php
run(); } else{ $ssl = [ 'local_cert' => CRT_PATH, 'local_pk'=> KEY_PATH, 'local_ca'=> CA_PATH, 'allow_self_signed' => true, 'verify_peer' => false ]; $app = new \Ratchet\Http\HttpServer( new \Ratchet\WebSocket\WsServer( new Chat($db) ) ); $loop = \React\EventLoop\Factory::create(); $webSock = new \React\Socket\Server('0.0.0.0'.':'.'8443', $loop); $webSock = new \React\Socket\SecureServer($webSock, $loop, $ssl); $webSock = new \Ratchet\Server\IoServer($app, $webSock, $loop); echo "Server running at "."0.0.0.0".":"."8443"."\n"; $webSock->run(); }