OpenSwoole\GRPC\Server->__construct

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


Latest version: pecl install openswoole-26.2.0

Declaration

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

Parameters

host

The IP address of the server.

port

The port of the server.

mode

Which mode to start the server.

sockType

The socket type of the server.

Return

Description

Create a new GRPC Server with constructor function.

Last updated on February 28, 2026