---
title: enableStreams()
framework: iousbhost
role: symbol
role_heading: Instance Method
path: iousbhost/iousbhostpipe/enablestreams()
---

# enableStreams()

Enables streams for the pipe.

## Declaration

```swift
func enableStreams() throws
```

## Discussion

Discussion This method changes the operational mode of the pipe to allow streaming endpoint transfers. Call this method before copyStream(withStreamID:).

## See Also

### Managing Streams

- [copyStream(withStreamID:)](iousbhost/iousbhostpipe/copystream(withstreamid:).md)
- [disableStreams()](iousbhost/iousbhostpipe/disablestreams().md)
