bigbluebutton-Github/bigbluebutton-html5/imports/api/network-information/server/publisher.js
2019-04-18 18:15:48 -03:00

22 lines
503 B
JavaScript

import { Meteor } from 'meteor/meteor';
import { check } from 'meteor/check';
import NetworkInformation from '/imports/api/network-information';
function networkInformation(credentials) {
const { meetingId } = credentials;
check(meetingId, String);
return NetworkInformation.find({
meetingId,
});
}
function publish(...args) {
const boundNetworkInformation = networkInformation.bind(this);
return boundNetworkInformation(...args);
}
Meteor.publish('network-information', publish);