Function Protocol.disconnected

Called when a connection is lost.

abstract void disconnected (
  SocketException exception
) @nogc;

Parameters

NameDescription
exception Exception if an error caused the disconnect, null otherwise.