OpenSwoole\GRPC\ClientPool->__construct

Latest version: pecl install openswoole-22.1.2 | composer require openswoole/core:22.1.5

Declaration

<?php OpenSwoole\GRPC\ClientPool->__construct()

Parameters

facetory

A factory class to create a new connection, it cloud be OpenSwoole\GRPC\ClientFactory::class.

config

The config data that the factory class needs to create a new instance.

size

This size of connection pool, default size is 16.

heartbeat

Enable hearbeat.

Return

Description

Create a new GRPC ClientPool with constructor function.

Last updated on September 16, 2022