19 lines
432 B
JavaScript
Executable File
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,
|
|
};
|