OpenSwoole\GRPC\Client->__construct

25.x is outdated, please check the latest version 26.x


Latest version: pecl install openswoole-26.2.0

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 February 28, 2026