$hostname
$hostname :
Base class for generated client stubs. Stub methods are expected to call _simpleRequest or _streamRequest and return the result.
_simpleRequest(string $method, $argument, callable $deserialize, array $metadata = array()) : \Grpc\SimpleSurfaceActiveCall
Call a remote method that takes a single argument and has a single output
| string | $method | The name of the method to call |
| $argument | The argument to the method |
|
| callable | $deserialize | A function that deserializes the response |
| array | $metadata | A metadata map to send to the server |
The active call object
_clientStreamRequest(string $method, $arguments, callable $deserialize, array $metadata = array()) : \Grpc\ClientStreamingSurfaceActiveCall
Call a remote method that takes a stream of arguments and has a single output
| string | $method | The name of the method to call |
| $arguments | An array or Traversable of arguments to stream to the server |
|
| callable | $deserialize | A function that deserializes the response |
| array | $metadata | A metadata map to send to the server |
The active call object
_serverStreamRequest(string $method, $argument, callable $deserialize, array $metadata = array()) : \Grpc\ServerStreamingSurfaceActiveCall
Call a remote method that takes a single argument and returns a stream of responses
| string | $method | The name of the method to call |
| $argument | The argument to the method |
|
| callable | $deserialize | A function that deserializes the responses |
| array | $metadata | A metadata map to send to the server |
The active call object
_bidiRequest(string $method, callable $deserialize, array $metadata = array()) : \Grpc\BidiStreamingSurfaceActiveCall
Call a remote method with messages streaming in both directions
| string | $method | The name of the method to call |
| callable | $deserialize | A function that deserializes the responses |
| array | $metadata | A metadata map to send to the server |
The active call object