ServerStream
class ServerStream (View source)
ServerStream is the response object from a gRPC server streaming API call.
Methods
__construct(ServerStreamingCall $serverStreamingCall, array $streamingDescriptor = [])
ServerStream constructor.
Generator|mixed
readAll()
A generator which yields results from the server until the streaming call completes. Throws an ApiException if the streaming call failed.
ServerStreamingCall|mixed
getServerStreamingCall()
Return the underlying gRPC call object
Details
__construct(ServerStreamingCall $serverStreamingCall, array $streamingDescriptor = [])
ServerStream constructor.
Generator|mixed
readAll()
A generator which yields results from the server until the streaming call completes. Throws an ApiException if the streaming call failed.
ServerStreamingCall|mixed
getServerStreamingCall()
Return the underlying gRPC call object