Chat Application with Angular and Socket.IO

Introduction We will use RxJS, Angular, express (Node.js) & Socket.IO to make a chat application. We will get to see how useful RxJS can be in this scenario. For the purpose of making things smooth and easy we will be using Angular CLI to generate basic client structure and get us a boilerplate for simplest […]

Continue reading

RxJS – Part 5 – RxJS error handling

This entry is part 5 of 6 in the RxJS series

Error handling In the first post we saw that we have 3 main methods on Observer object: next, error and complete. Lets focus on error() method. When does it gets called? Lets see the code example. For that scenario we will use almost the same code that we used in second post when we used […]

Continue reading

RxJS – Part 4 – Operators

This entry is part 4 of 6 in the RxJS series

RxJS  Operators introduction This time we are going to talk about operators. If you are not familiar with RxJS you should read first post in the series – introductory post. There are many different ways to deal with asynchronous data. We could use callback functions or promises. Also, we could use generators and make our […]

Continue reading

RxJS – Part 3 – Hot and Cold Observable

This entry is part 3 of 6 in the RxJS series

Hot and cold Observable While working with RxJS you will definitely run into these two terms – hot and cold Observable. Hot observable produces items regardless of the subscribers. Even if no one subscribed it will produce values. Such example is mouse move event. Mouse move occurs whether someone is listening or not. Think of […]

Continue reading

RxJS – Part 2 – Observable

This entry is part 2 of 6 in the RxJS series

Observable creation In the first post we saw how we can work with simple data sources and create an Observable from them. In this post we will see how can create Observable using various sources and methods available on Observable object. Some methods available on Observable object that we can use to create new Observables […]

Continue reading