Can someone explain me difference between socket, socketio, flask socketio with respect to python? And for using it this socket with flutter what code should I write on backend? Like I should write sever and client or only client?
HTTP request is something like this, if we write something on the URL or search bar using a browser then
This asks for something, get something kind of system works great for a huge variety of things, like reading the news or checking the weather.
But if you want to get info more real-time, like chatting you would have to be requesting all of the time.
Websocket's purpose is to allow for a persistent' connection with a backend server so that client doesn’t have to wait for another time as the browser does.
So anyone can create a backend and frontend combination system that can very quickly and responsively react to new data as if it were a stream flowing into your client (like web client, mobile app)
You have to write both server and client to achieve real-time applications and the client needs to be connected to the server.
If you want to make a video call application then you need to exchange some info like SDP, ICE Candidate, etc. So to exchange these informations you have to develop a signaling server so that server can send these informations in real-time to its respective client.
In every platform, you can achieve socket technology. So socketio, flask socket are the different forms of the same thing in different platforms.