export function ON ( topicName ) { return ( target , propertyKey , descriptor ) => { target . eventsON = target . eventsON || new Map ( ) ; target . eventsON . set ( topicName , descriptor . value ) ; } ; } export function MAIN ( topicName ) { return ( target , propertyKey , descriptor ) => { target . eventsMAIN = target . eventsMAIN || new Map ( ) ; target . eventsMAIN . set ( topicName , descriptor . value ) ; } ; } export function RPC ( topicName ) { return ( target , propertyKey , descriptor ) => { target . eventsRPC = target . eventsRPC || new Map ( ) ; target . eventsRPC . set ( topicName , descriptor . value ) ; } ; }