OpenSwoole\GRPC\Client->__construct

Latest version: pecl install openswoole-22.0.0 | composer require openswoole/core:22.1.1

Declaration

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

Parameters

host

The hostname of GRPC server.

port

The port of GRPC server.

mode

It can be OpenSwoole\\GRPC\\Constant::GRPC_CALL | OpenSwoole\\GRPC\\Constant::GRPC_STREAM.

Return

Description

Create a new GRPC Client with constructor function.

Last updated on September 21, 2022