A self hosted chat application with end-to-end encrypted messaging.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
874 B

  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. // /**
  4. // * The Observer interface declares the update method, used by subjects.
  5. // */
  6. // interface Observer {
  7. // // Receive update from subject.
  8. // update(subject: Subject): void;
  9. // }
  10. // /**
  11. // * Concrete Observers react to the updates issued by the Subject they had been
  12. // * attached to.
  13. // */
  14. // class ConcreteObserverA implements Observer {
  15. // public update(subject: Subject): void {
  16. // if (subject.state < 3) {
  17. // console.log('ConcreteObserverA: Reacted to the event.');
  18. // }
  19. // }
  20. // }
  21. // class ConcreteObserverB implements Observer {
  22. // public update(subject: Subject): void {
  23. // if (subject.state === 0 || subject.state >= 2) {
  24. // console.log('ConcreteObserverB: Reacted to the event.');
  25. // }
  26. // }
  27. // }