(cherry picked from commit 359fff4c28c58bb5d047993ae91cf2b65f03eaa6)
This commit is contained in:
browniecab 2018-08-31 12:34:43 -04:00 committed by Maxim Khlobystov
parent a10ea02e1c
commit dbcc684a46
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,5 @@
export BBB_SERVER_URL="http://localhost/bigbluebutton/api"
# Change to HTML5 directory
cd $(dirname $0)
echo "Working directory: $PWD"

View File

@ -1,7 +1,10 @@
require('dotenv').config();
const axios = require('axios');
const path = require('path');
const url = require('url');
const helper = require('./helper');
const httpPath = path.join(path.dirname(require.resolve('axios')),'lib/adapters/http');
const http = require(httpPath);
(async () =>
{
@ -15,7 +18,7 @@ const helper = require('./helper');
{
try
{
var response = await axios.get(check);
var response = await axios.get(check, {adapter: http});
var status = response.data.html5clientStatus
console.log(response.data);
if(status === 'running')