March 2018
Beginner to intermediate
344 pages
7h 7m
English
In our previous example, if we wanted to get new data from the server we'd need to make another HTTP request, whereas with WebSockets we can simply have a consistent event-listener that reacts whenever the event is fired.
To take advantage of this in our chat application, we'll be using Socket.io. This is a client and server-side library that allows us to work with WebSockets quickly and easily. It allows us to define and submit events that we can listen to and subsequently perform actions.
Read now
Unlock full access