It seems that when an AsyncStream is initialized in Prefix mode with an InputStream the Error event is not raised when the server drops the connection. Without and Inputstream the event is raised when the connection is lost. Am I missing something related to the transfer modes? or is there another way to tell if the connection is lost?