From 62e2005eefe04e91c84e523af97ce667cf2e63cf Mon Sep 17 00:00:00 2001 From: Oswaldo Acauan Date: Mon, 13 Jun 2016 14:56:41 -0300 Subject: [PATCH] Add /check endpoint for HTML5 client --- bigbluebutton-html5/imports/startup/server/index.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/bigbluebutton-html5/imports/startup/server/index.js b/bigbluebutton-html5/imports/startup/server/index.js index 7e04ee4c36..be5882cd4c 100644 --- a/bigbluebutton-html5/imports/startup/server/index.js +++ b/bigbluebutton-html5/imports/startup/server/index.js @@ -9,6 +9,14 @@ Meteor.startup(function () { logger.info('server start'); }); +WebApp.connectHandlers.use('/check', (req, res, next) => { + let payload = { html5clientStatus: 'running' }; + + res.setHeader('Content-Type', 'application/json'); + res.writeHead(200); + res.end(JSON.stringify(payload)); +}); + export const myQueue = new EventQueue(); export const eventEmitter = new (Npm.require('events').EventEmitter);