In The Name OF Allah
Al-Salam Alekum
What's the difference between HTTP and Socket?
Between a Server and Client we have Request and Response. HTTP protocol on the Client side can send Request to the Server and Server send Response to the Client. This mean The server Can't send request to the Client and Client can't send response, so let's have an example: You will browser a page on internet using protocol HTTP. You had just send a Request to theĀ Server. The server will send back the page content in response to your Request.
After Developing on Internet we needed another protocol which provide us Request/Response between Client and Server as we have in Chat application or on Social media. The answer was a Socket, which provide Request/Response on both side. You can now chat with your friend on a Social media you will send a message to your friend and he will message back you or Video chat.
I'm done, if you have any question please feel free asking hereĀ
Wa Salam Alekum
* Thankful to Allah *
Kurdy