Sockets are one of the most important technologies which allow us to create applications in real time. These applications are generally used or compared to live chats. Everybody has used a chat since they have had access to the internet but good because Sockets are associated to chat.
if you have noticed in the chat there are usually 1.2 or more users but the idea is that by using a chat and sending a message this is sent to the other people who are connected for this, we use the Sockets this technology allows us make a connection with servers in real time.
Before these technologies existed, the logic or how the network worked was that one sent files either messages or posts were sent and the user had to reload the page that he was viewing so that the messages would be updated. Let's post to twitter if you have used twitter this in the part of Tweet these are updated as time passes and the people who continue to be updated this works thanks to the Sockets if they were not the way to update these tweets would be that the user would have to constantly update the information or complete page to be able to have access to the new information generally this is the reason why the Sockets work in real time these allow to send data of served to clients and to update the information without having to change or reload a whole web site.
In what can be used
this technology can be used for almost all of the companies use them from facebook twitter to exchanges which use them and are what their main operation performs, let's give another example with the exchanges:
at the time of making purchases and sales in an exchange, be it Binance, Bittrex, Kukoin or any other that comes to mind when buying your place your purchase orders these are listed in the network and you can see how people go buying and selling their cryptocurrencies in real time this is thanks to the Sockets because at the moment that a person makes a sale or purchase this makes a change in the information received by the exchange database of this is responsible for transmitting in Real time data new data to all other users who have a connection to the server avoiding that you have to reload the page to only transfer the new data received
Which browsers can use this technology
You might think that this is a new technology but the truth is that it has been active for some years and until today could say that it is a standard in almost all browsers in one way or another you can verify if the technology is in your browser preferred in
https://caniuse.com/#search=Websocket
this page what allows us is to see the compatibility of our technologies with different browsers among a lot of other information of interest without more than saying thank you for reading my publication and I hope that you have been of interest
source image 1 2