An Interest In:
Web News this Week
- April 1, 2024
- March 31, 2024
- March 30, 2024
- March 29, 2024
- March 28, 2024
- March 27, 2024
- March 26, 2024
April 20, 2021 07:30 pm GMT
Original Link: https://dev.to/eulier/web-socket-and-http-s-intro-to-simple-differences-38bn
Web socket and HTTP(s); Intro to simple differences
In telecommunication a duplex communication system is a point to point system composed of 2 or more connected devices.
And it can be:
HTTP, HyperText Transfer Protocol is a Half-duplex system.
So writing chat applications using i.e. LAMP Stack, (Linux, Apache, Mysql & PHP), it involve:
- Actively sampling the status of the server (Polling) for changes
- Keep track timestamp and
- Its slower than it should be.
Socket have traditionally been the solution for real-time chat application are architected, supplying a bi-directional (Full-duplex) communication channel between the client and the server. It actually use the URI format.
ws://userinfo@host:port/path?query#fragment
This is just a start to wrap your mind around in case you want to understand how socket.io
It also contains very helpful examples
Original Link: https://dev.to/eulier/web-socket-and-http-s-intro-to-simple-differences-38bn
Share this article:
Tweet
View Full Article
Dev To
An online community for sharing and discovering great ideas, having debates, and making friendsMore About this Source Visit Dev To