dwyl / learn-flutter

🦋 Learn how to use Flutter to Build Cross-platform Native Mobile Apps
https://flutter.dev
GNU General Public License v2.0
73 stars 8 forks source link

How will the connection between Flutter and Phoenix be made? #25

Closed miguelmartins17 closed 4 years ago

miguelmartins17 commented 4 years ago

I would like to know more about this because I never understood how the connection between the two could be made.

nelsonic commented 4 years ago

@miguelmartins17 good question. The Flutter App will make HTTP Requests to the Phoenix REST API. That's why I created #6 to test how easy/difficult it is to make a REST API request. 👍 Once we have got the REST Requests working we will need to implement WebSockets for "real time" interactions. Phoenix's "superpower" is making WebSockets easy. See: https://flutter.dev/docs/cookbook/networking/web-sockets

miguelmartins17 commented 4 years ago

Now I understand how it's gonna work. Thank you! 👍