ServerStream
class ServerStream
ServerStream is the response object from a gRPC server streaming API call.
Methods
__construct(ServerStreamingCall $serverStreamingCall, array $grpcStreamingDescriptor = [])
ServerStream constructor.
static callable
createApiCall(callable $callable, mixed[] $grpcStreamingDescriptor)
No description
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
getServerStreamingCall()
Return the underlying gRPC call object
Details
at line 50
__construct(ServerStreamingCall $serverStreamingCall, array $grpcStreamingDescriptor = [])
ServerStream constructor.
at line 63
static callable
createApiCall(callable $callable, mixed[] $grpcStreamingDescriptor)
at line 78
Generator|mixed
readAll()
A generator which yields results from the server until the streaming call completes. Throws an ApiException if the streaming call failed.
at line 103
ServerStreamingCall
getServerStreamingCall()
Return the underlying gRPC call object