Reference documentation and code samples for the Google API Core Client class ServerStream.
ServerStream is the response object from a server streaming API call.
Namespace
Google \ ApiCoreMethods
__construct
ServerStream constructor.
Parameters | |
---|---|
Name | Description |
serverStreamingCall |
Google\ApiCore\ServerStreamingCallInterface
The server streaming call object |
streamingDescriptor |
array
|
readAll
A generator which yields results from the server until the streaming call completes. Throws an ApiException if the streaming call failed.
Returns | |
---|---|
Type | Description |
Generator|mixed |
getServerStreamingCall
Return the underlying call object.
Returns | |
---|---|
Type | Description |
Google\ApiCore\ServerStreamingCallInterface |