diff --git a/example.js b/example.js index 52b8d63..a06948a 100644 --- a/example.js +++ b/example.js @@ -14,4 +14,8 @@ server.on("set", function(connection, key, value){ connection.write("SAVED\r\n"); }); +server.on("quit", function(connection){ + connection.end(); +}); + server.start();