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/app/importer/server/classes/ImporterWebsocket.js

18 lines
431 B

import notifications from '../../../notifications/server/lib/Notifications';
class ImporterWebsocketDef {
constructor() {
this.streamer = notifications.streamImporters;
}
/**
* Called when the progress is updated.
*
* @param {Progress} progress The progress of the import.
*/
progressUpdated(progress) {
this.streamer.emit('progress', progress);
}
}
export const ImporterWebsocket = new ImporterWebsocketDef();