Write the data to the connection.
- iOS 9.0+
- macOS 10.11+
The data object whose content will be written.
The completion handler to be invoked when the data content has been written or an error has occurred. If
nil, the write succeeded and the caller can write more data.
Callers should wait until the
completion is executed before issuing another write.