A little bit of code modernization: converting enums to NS_ENUM.
Minor documentation improvements
Adding a proper NSError for cases where the stream is disconnected due to the startTLSPolicy.