COMPUTER NETWORKING

APPLICATION LAYER

CLIENT SERVER PARADIGM

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
Which of these is an example of a modern API used for communication?
A
Websocket protocol
B
TCP/IP
C
JSON
D
HTTP
Explanation: 

Detailed explanation-1: -The WebSocket protocol uses the origin model used by Web browsers to restrict which Web pages can contact a WebSocket server when the WebSocket protocol is used from a Web page.

Detailed explanation-2: -The WebSocket API invokes your backend based on the content of the messages it receives from client apps. Unlike a REST API, which receives and responds to requests, a WebSocket API supports two-way communication between client apps and your backend. The backend can send callback messages to connected clients.

Detailed explanation-3: -WebSocket is a communications protocol for a persistent, bi-directional, full duplex TCP connection from a user’s web browser to a server. A WebSocket connection is initiated by sending a WebSocket handshake request from a browser’s HTTP connection to a server to upgrade the connection.

There is 1 question to complete.