WebSockets
Comparisons of API Architectural Styles
RESTful APIs using JSON on the HTTP protocol is by far the most popular approach to creating web APIs. The three key aspects for these different types: Design Philosophy/Pattern (e.g. RESTful vs GraphQL) Communication Protocol (e.g. HTTP vs WebSockets) Encoding (e.g.
https://www.moesif.com/blog/api-guide/comparisons-of-api-architectural-styles/

What is the difference between Socket and RPC?
PS: Confusion arise while reading Operating System Concepts by Galvin That's your problem right there. A remote procedure call (RPC) is high level model for network communication. There are numerous RPC protocols in existence. In the RPC model, your underlying implementation creates a stub for each remote procedure.
https://stackoverflow.com/questions/46128598/what-is-the-difference-between-socket-and-rpc
소켓과 웹소켓
소켓(socket) 과 웹소켓 🔌 소켓이란, 프로그램이 네트워크 상에서 데이터를 송신과 수신을 하기 위한 연결부이다. 일반적으로 TCP/IP (또는 UDP) 프로토콜을 이용하거나, WebSocket 을 이용한다. 웹소켓(WebSocket) 과 TCP/IP 소켓은 차이가 있다. 웹소켓은 HTTP 레이어에서 작동하는 소켓으로 레이어가 다르다. (RFC-6455) IP, PORT 를 통해 통신한다는 점에서는 비슷하다.
https://dalya-tech.tistory.com/27


Seonglae Cho