FoundationStream

open class FoundationStream : NSObject, WSStream, StreamDelegate

Undocumented

  • Undocumented

    Declaration

    Swift

    public weak var delegate: WSStreamDelegate?
  • Undocumented

    Declaration

    Swift

    public var enableSOCKSProxy: Bool
  • Undocumented

    Declaration

    Swift

    public func connect(url: URL, port: Int, timeout: TimeInterval, ssl: SSLSettings, completion: @escaping ((Error?) -> Void))
  • Undocumented

    Declaration

    Swift

    public func write(data: Data) -> Int
  • Undocumented

    Declaration

    Swift

    public func read() -> Data?
  • Undocumented

    Declaration

    Swift

    public func cleanup()
  • Undocumented

    Declaration

    Swift

    public func sslTrust() -> (trust: SecTrust?, domain: String?)
  • Delegate for the stream methods. Processes incoming bytes

    Declaration

    Swift

    open func stream(_ aStream: Stream, handle eventCode: Stream.Event)