BidiStream is the response object from a gRPC bidirectional streaming API call.

CloneableInstantiable
Methods
public __construct( $bidiStreamingCall, array $streamingDescriptor = [])
 
BidiStream constructor.

    public closeWrite()
     
    Inform the server that no more requests will be written. The write() function cannot be called after closeWrite() is called.

    public closeWriteAndReadAll()
     
    Call closeWrite(), and read all responses from the server, until the streaming call is completed. Throws an ApiException if the streaming call failed.

    public getBidiStreamingCall()
     
    Return the underlying gRPC call object

    • return Grpc\BidiStreamingCall|mixed
    public read()
     
    Read the next response from the server. Returns null if the streaming call completed successfully. Throws an ApiException if the streaming call failed.

    public write( $request)
     
    Write request to the server.

    public writeAll( $requests = [])
     
    Write all requests in $requests.

    Properties
    private $call
    private $isComplete
    private $pendingResources
    private $resourcesGetMethod
    private $writesClosed
    © 2020 Bruce Wells
    Search Namespaces \ Classes
    ConfigurationNumbers (0-9.) only