export class MessageSender { static MESSAGE_KEY_PREFIX = 'PANDORA_PROCESS_MESSAGE_' ; client : { on ( msg , reply ) ; emit ( messageKey , messageData ) ; } = process ; param categoryKey param args send ( categoryKey , args ) { this . client . emit ( `${ MessageSender . MESSAGE_KEY_PREFIX }${ categoryKey }` , args ) ; } on ( categoryKey , reply ) { this . client . on ( `${ MessageSender . MESSAGE_KEY_PREFIX }${ categoryKey }` , reply ) ; } }