Event SocketError SocketError.connectionClosed Case SocketError.connectionClosed The peer performed an orderly shutdown of its write side (read(2) returned 0). case connectionClosed Mentioned In How to Write an Async TCP Server in Swift Getting Started with Event in Swift Discussion Surfaced from read(maxBytes:timeout:) to distinguish EOF from a transport error.