bigbluebutton-Github/bigbluebutton-html5/imports/ui/services/api/index.js
2016-05-12 11:10:20 -05:00

19 lines
432 B
JavaScript
Executable File

function callServer(name, ...args) {
if (!name || name.length === 0 || !name.trim() || /^\s*$/.test(name)) {
console.error(`serverCall: invalid function name '${name}'`);
return false;
}
const credentials = {
// meetingID: getInStorage('meetingID'),
// userID: getInStorage('userID'),
// authToken: getInStorage('authToken'),
};
Meteor.call(name, credentials, ...args);
};
export {
callServer,
};