Flutter, Web Sockets and AWS
Flutter, Web Sockets and AWS
How can we create our own streaming mechanism? Hmmm…
All in one Flutter resource: https://flatteredwithflutter.com/flutter-web-sockets-and-aws/
History…..
Prior to Web Sockets, we had…polling
Polling: a synchronous method wherein the client makes a request to the server to see if there is any information available. The client receives a response from the server even if there is no information available.
Drawbacks :
In most real-time applications, message frequency is often unpredictable. In addition, polling requires the client to open and close many unnecessary connections.
Web Sockets….
The WebSocket Protocol is a widely supported open standard for developing real-time applications.
It allows the creation of full-duplex, bidirectional connections between a client and a server over the web.
Difference: Web Socket URL contains a special field called Upgrade…