Chapter 7. HTTP and WebSocket Communication
In this chapter, we'll be looking at how we can interface with our server-side APIs using HTTP. We will create an application using our own offline API with HTTP GET, POST, PUT , PATCH, and DELETE. As well as this, we'll be creating an in-memory, real-time chat application that takes advantage of WebSockets with the Socket.io library.
By the end of this chapter, you will know how to:
- Create a mock database APIs with
json-server - Create HTTP requests with
Axios - Use WebSockets and
Socket.iofor real-time communication across clients