"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const events = require("events");
const SipClient_1 = require("./SipClient");
const StompClient_1 = require("./StompClient");
class PhoneService extends events.EventEmitter {
    constructor(options) {
        super();
        this._sipClient = new SipClient_1.default(options);
        this._stompClient = new StompClient_1.default(options);
    }
    disconnect() {
        if (this._stompClient) {
            this._stompClient.disconnect();
        }
        if (this._sipClient) {
            this._sipClient.stop();
        }
    }
}
exports.default = PhoneService;
