https://medium.
com/flutter-community/flutter-integrating-socket-io-client-2a8f6e208810
Socket.Io, Flutter
Socket.Io Web Socket
Is a popular library Is a two-way, full duplex
used to implement communication technology, in
web sockets. which the transmission of data is
real-time and bi-directional
How does it work?
Flutter app will be considered as a Client
Backend is considered as Server
We will be establishing a bi-directional and real-time data transmission
between them using Socket IO
Steps we need to follow for successful data transmission.
1. First, we have to build a connection with the server.
2. Your app will be listening to events, so if a new event arrives, your UI
will reflect it immediately (Like listening to new messages in Chat).
3. You can emit events, maybe when you want to broadcast some data to
your backend (Like emitting a new message to Chat).
4. Don’t forget to close the connection between client and server.