I tried your function and I'm seeing an error on the outputHandle.readabilityHandler line.
Type of expression is ambiguous without a type annotation
Topic:
App & System Services
SubTopic:
Networking
Tags: