From 9c958a50a9bc9d780f75f73634c459130c2e53d6 Mon Sep 17 00:00:00 2001 From: brettlangdon Date: Fri, 1 Nov 2013 23:33:59 -0400 Subject: [PATCH] add 'quit' command to example --- example.js | 4 ++++ 1 file changed, 4 insertions(+) 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();