# Google API Core Client - Class ServerStream (1.43.0)

1.43.0 (latest) 1.42.5 1.40.0 1.38.2 1.36.1 1.35.1 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 \\ ApiCore

## Methods

### __construct

ServerStream constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `serverStreamingCall` | `ServerStreamingCallInterface` The server streaming call object |
| `streamingDescriptor` | `array` |
| `logger` | `null|Psr\Log\LoggerInterface` A PSR-3 compliant logger. |

### 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<int,\Google\ApiCore\T>|mixed` |   |

### getServerStreamingCall

Return the underlying call object.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `ServerStreamingCallInterface` |   |