Skip to content

Commit d348183

Browse files
committed
add socket example
1 parent 3154368 commit d348183

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ use Makasim\PhpFpm\PhpFpmConnectionFactory;
3838
require_once __DIR__.'/vendor/autoload.php';
3939

4040
$context = (new PhpFpmConnectionFactory('tcp://localhost:9000'))->createContext();
41+
// or
42+
//$context = (new PhpFpmConnectionFactory('unix:///var/run/php/php7.1-fpm.sock'))->createContext();
4143

4244
$queue = $context->createQueue(__FILE__);
4345

0 commit comments

Comments
 (0)