Web Socket by PW
Web Socket by PW
Lecture CheckList
1. Introduction.
2. Transmission Modes.
3. Web Sockets.
1. Simplex.
1. Half-Duplex.
1. Full-Duplex.
Web Sockets
A WebSocket is a communication protocol that enables full-duplex and
bidirectional data transfer between a client and a server over the internet. Unlike the
traditional HTTP protocol, which is unidirectional and stateless, WebSockets enable
real-time communication, allowing data to flow back and forth between the server
and the client in real time.
Why were web sockets created?
The traditional HTTP protocol used in web development is designed for client-server
communication, where the client sends a request to the server and the server
responds with a static or dynamic resource. However, this communication is
unidirectional and lacks real-time interaction between the client and server.
With the increasing demand for real-time web applications, there was a need for a
new technology that allowed for bidirectional, real-time communication between
the client and server. This is where WebSockets come in.
3. Scalability.
5. Flexibility
6. Security
Disadvantages of web sockets
Although WebSockets provide many advantages over traditional HTTP-based
communication protocols, they also have some disadvantages. Here are some of
the key disadvantages of WebSockets:
1. Browser compatibility..