why angular?
you don't have to
but we'll use it and utilize the rxjs library
- rxjs Subjects are both an Observable and an Observer
- listen to and send messages
- Subject watches websocket for incoming messages and broadcasts these messages to any components subscribed to it
credit: Elliot Forbes