The communications platform that puts data protection first.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
Rocket.Chat/apps/meteor/server/startup/localServices.ts

12 lines
359 B

import { api, LocalBroker } from '@rocket.chat/core-services';
import { StreamerCentral } from '../modules/streamer/streamer.module';
const broker = new LocalBroker();
broker.onBroadcast((eventName: string, args: unknown[]) => {
StreamerCentral.emit('broadcast', 'local', 'broadcast', [{ eventName, args }]);
});
api.setBroker(broker);
void api.start();