Web Socket APIs allow bi-directional, full-duplex communication between clients and servers. … Difference between Rest API and Web Socket API : S.NO.REST APIWEB SOCKET API1.It is Stateless protocol. It will not store the data.It is Stateful protocol. It will store the data.Difference between Rest API and Web Socket API – GeeksforGeeks www.geeksforgeeks.org › difference-between-rest-api-and-web-socket-api