- removed requirement for ZMQ PHP extension and replaced the Socket stuff with native PHP code

This commit is contained in:
Mark Friedrich
2019-05-01 02:00:31 +02:00
parent 40c1cc5f7b
commit c77e3dd484
6 changed files with 625 additions and 46 deletions

View File

@@ -25,9 +25,9 @@ if(PHP_SAPI === 'cli'){
$host = (!empty($options['pf_host'])) ? $options['pf_host'] : '127.0.0.1' ;
$port = (!empty($options['pf_port'])) ? (int)$options['pf_port'] : 5555 ;
$dns = 'tcp://' . $host . ':' . $port;
$dsn = 'tcp://' . $host . ':' . $port;
new Socket\WebSockets($dns, $wsListenPort, $wsListenHost);
new Socket\WebSockets($dsn, $wsListenPort, $wsListenHost);
}else{
echo "Script need to be called by CLI!";
}