Basically, the RESTful API, which is used to communicate with the server. So whenever the client needs a data, the client will hit the API to the server and the server will give the response to it. So we will use, actually in Android side, we will use the RESTful API with HTTP client, OKHTTP client to make a network call. So it has four different methods, like a POST, PUT, like that method, POST, PUT, GET related method, and we can hit that API based on that. And using the retrofit, we can make a network call and we can set some of the interceptors, like we can set a logging interceptor, and we can set up catching interceptor, like for the logging interceptor, which is used to log the request and response body, and catching interceptor, which is used to catch the request and response related things. And basically, we also, if you want to put some header on it, we can use the, we can provide some more interceptor like that. And for that, so basically we use retrofit and OKHTTP client to make a network call and we use the REST API for that. And if you, WebSocket, so WebSocket will comes under like two-way communications, like a client and server communication, but in the REST API, the client only can communicate to the server, but in the WebSocket, but in the WebSocket, there will be a two-way communication, the client and server communication. So the server can also send, whenever there is any data changes, or whenever it wants to update to the client. So WebSocket will have like a two-way communication. So initially they will both get connected, and after they connected, and both they can send data and they can receive data, like client or service.
