bigbluebutton-Github/bigbluebutton-html5/imports/api/network-information/server/publisher.js

22 lines
503 B
JavaScript
Raw Normal View History

2019-04-19 05:15:48 +08:00
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);