Non-responsive stream delegate in Swift
问题 So I was playing around with sockets in Swift and trying to connect the app with my server. I was having the app connect to the IP address of the server and used netcat on the server for testing. During execution, the console output from the app showed it had successfully connected to the server. However, the stream delegate does not seem to be responsive. When I typed into netcat , the app console did not print anything. I have searched for quite a while and found that my implementation is