braverhealth / phoenix-socket-dart

Cross-platform and stream-based implementation of Phoenix Sockets
https://pub.dev/packages/phoenix_socket
BSD 3-Clause "New" or "Revised" License
74 stars 37 forks source link

More complex examples #2

Closed agramichael closed 3 years ago

agramichael commented 4 years ago

Hey, would it be possible to get some more complex examples for learning?

Something doing everything async: connecting to a socket, connecting to a channel, receiving broadcasts, pushing events and receiving their responses, all with futures so the UI is updated once the response is received?

matehat commented 4 years ago

Great idea, I'll try to come up with something quickly

TylerSustare commented 3 years ago

This would be great! Even one example on how to use the counter app to just push and receive phoenix updates instead of using state would be appreciated.