bigbluebutton-Github/bigbluebutton-html5/imports/api/captions/server/methods/addCaptionsPads.js

19 lines
541 B
JavaScript
Raw Normal View History

import RedisPubSub from '/imports/startup/server/redis';
import { Meteor } from 'meteor/meteor';
import { check } from 'meteor/check';
export default function addCaptionsPads(meetingId, padIds) {
const REDIS_CONFIG = Meteor.settings.private.redis;
const CHANNEL = REDIS_CONFIG.channels.toAkkaApps;
const EVENT_NAME = 'AddCaptionsPadsSysMsg';
check(meetingId, String);
check(padIds, [String]);
const payload = {
padIds,
};
return RedisPubSub.publishUserMessage(CHANNEL, EVENT_NAME, meetingId, 'nodeJSapp', payload);
}