diff --git a/source/bformat/client.d b/source/bformat/client.d index 01ae730..32fc378 100644 --- a/source/bformat/client.d +++ b/source/bformat/client.d @@ -145,6 +145,14 @@ public class BClient } } + /** + * Closes the client + */ + public void close() + { + /* Close the underlying stream */ + stream.close(); + } } version(unittest) @@ -206,4 +214,6 @@ unittest assert(receivedMessage == "ABBA"); writeln(receivedMessage); writeln(cast(string)receivedMessage); + + bClient.close(); } \ No newline at end of file