From 669992595defeee80961d7f24d85f28a6aed4766 Mon Sep 17 00:00:00 2001 From: Rafal Wilinski Date: Tue, 18 Sep 2018 12:46:45 +0200 Subject: [PATCH] Improve example --- examples/index.js | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/examples/index.js b/examples/index.js index 31b3a6c..026e0b2 100644 --- a/examples/index.js +++ b/examples/index.js @@ -21,6 +21,22 @@ app.use( // Pass socket.io instance port down to config. // Use only if you're passing your own instance. // port: socketIoPort, + healthChecks: [ + { + protocol: 'http', + host: 'localhost', + port: 3000, + path: '/admin/health/ex1', + headers: {}, + }, + { + protocol: 'http', + host: 'localhost', + port: 3000, + path: '/return-status/200', + headers: {}, + }, + ], }), ); app.use(require('express-favicon-short-circuit'));