AbstractConnector.js 372 B

1234567891011121314151617
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. class AbstractConnector {
  4. constructor() {
  5. this.connecting = false;
  6. }
  7. check(info) {
  8. return true;
  9. }
  10. disconnect() {
  11. this.connecting = false;
  12. if (this.stream) {
  13. this.stream.end();
  14. }
  15. }
  16. }
  17. exports.default = AbstractConnector;