---
title: outputStream
framework: externalaccessory
role: symbol
role_heading: Instance Property
path: externalaccessory/easession/outputstream
---

# outputStream

The stream to use for sending data to the accessory.

## Declaration

```swift
var outputStream: OutputStream? { get }
```

## Discussion

Discussion This stream is provided for you automatically by the session object but you must configure it if you want to receive any associated stream events. You do this by assigning a delegate object to the stream that implements the stream(_:handle:) delegate method. You must then schedule the stream in a run loop so that it can send data asynchronously from one of your application’s threads. For more information on how to schedule an output stream in a run loop and use it to send data, see Stream Programming Guide.

## See Also

### Getting the Communication Streams

- [inputStream](externalaccessory/easession/inputstream.md)
