Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
How to use 'web_socket_channel' in todos_repository_simple #159
Comments
|
Here is an example of using Aqueduct server and a dart client to implement a chat room using sockets: |


Web socket as data Provider
todos_repository_simpleexplains nicely about the benefits of using repository as singleton. But no where it's mentioned how to handle the web sockets.How can I use web socket (webSocket and fileStorage) instead of rest (webClient and fileStorage) ?
Some key points between web socket and rest.
Every time we receive data from socket :
Article : reload the UI directly in widget by mapping switch case.
Flutter_bloc: need to reload the UI through bloc_state.
Thanks.