// 'use strict';

// import { EventEmitter } from "events";
// import { RhamtConfiguration } from "../rhamtService/main";
// import * as EventBus from 'vertx3-eventbus-client';

// export class ConfigurationServer extends EventEmitter {

//     constructor(private configuration: RhamtConfiguration, 
//         private bus: EventBus.EventBus) {
//             super();
//     }

//     public start(): void {
//         this.bus.registerHandler('rhamt.configuration.'+this.configuration.name, {}, this.handleMessage.bind(this));
//         console.log('finished setting up sockets for configuration: ' + this.configuration.name);
//     }

//     public dispose(): void {
//         this.bus.unregisterHandler('rhamt.configuration.'+this.configuration.name, {}, this.handleMessage.bind(this));
//     }

//     public handleMessage (err: Error, msg: any): void {
//         console.log('configuration socket received message: ' + msg);
//     }
// }