Represents an active call that allows for sending and receiving messages in streams in any order.

CloneableInstantiable
ExtendsGrpc\AbstractCall
Methods
public Grpc\AbstractCall::__construct(Grpc\Channel $channel, $method, $deserialize, array $options = [])
 
Create a new Call wrapper object.

    public Grpc\AbstractCall::cancel()
     
    Cancels the call.

    public Grpc\AbstractCall::getMetadata()
     


    • return mixed The metadata sent by the server
    public Grpc\AbstractCall::getPeer()
     


    • return string The URI of the endpoint
    public getStatus()
     
    Wait for the server to send the status, and return it.

    • return stdClass The status object, with integer $code, string $details, and array $metadata members
    public Grpc\AbstractCall::getTrailingMetadata()
     


    • return mixed The trailing metadata sent by the server
    public read()
     
    Reads the next value from the server.

    • return mixed The next value from the server, or null if there is none
    public Grpc\AbstractCall::setCallCredentials( $call_credentials)
     
    Set the CallCredentials for the underlying Call.

      public start(array $metadata = [])
       
      Start the call.

        public write( $data, array $options = [])
         
        Write a single message to the server. This cannot be called after writesDone is called.

          public writesDone()
           
          Indicate that no more writes will be sent.

          Properties
          protected Grpc\AbstractCall::$call
           


          • var Call
          protected Grpc\AbstractCall::$deserialize
          protected Grpc\AbstractCall::$metadata
          protected Grpc\AbstractCall::$trailing_metadata
          Methods
          protected Grpc\AbstractCall::_deserializeResponse( $value)
           
          Deserialize a response value to an object.

          • return mixed The deserialized value
          protected Grpc\AbstractCall::_serializeMessage( $data)
           
          Serialize a message to the protobuf binary format.

          • return string The protobuf binary format
          © 2020 Bruce Wells
          Search Namespaces \ Classes
          ConfigurationNumbers (0-9.) only