Before we get started on the frontend, we write a basic implementation of our server-side users module.
The first client-side component we build is our users store - allowing us to retrieve user list data and events from our observable socket.
Next up, we build our front-end component that displays a list of users.
Because of an interesting behavior of RxJS, we have to introduce the concept of a “safe subscribe” - allowing our observable sequences to be more resilient to errors.
For our first auth method, we create the server-side code responsible for being able to login our users with a simple username.
We finish our auth code with the ability for a user to log out.