{"size": 687, "ext": "js", "max_stars_repo_path": "src/receiver.js", "max_stars_repo_name": "claudiotx/webpack-basic-boilerplate", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/receiver.js", "max_issues_repo_name": "claudiotx/webpack-basic-boilerplate", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/receiver.js", "max_forks_repo_name": "claudiotx/webpack-basic-boilerplate", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 32.7142857143, "max_line_length": 79, "alphanum_fraction": 0.6579330422}
import SuperEventEmitter from './super_event_emitter';

class Receiver {
    constructor(){
        console.info('receiver running');
        this.subscribeToEventEmitterDataChannel();
        this.subscribeToEventEmitterXptoChannel();
    }
    subscribeToEventEmitterDataChannel(){
        const subscription = SuperEventEmitter.listen('data', function (data) {
            console.log('receiver received on data channel: ' + data);
        });
    }
    subscribeToEventEmitterXptoChannel(){
        const subscription = SuperEventEmitter.listen('xpto', function (data) {
            console.log('receiver received on xpto channel: ' + data);
        });
    }

}
export { Receiver };