-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Flutter and Phoenix channels #61
Comments
@th0mas see how far you can get with |
|
Crucially we need to have a library that knows to avoid attempting to reconnect when the devices is offline |
This library does seem to have Presence support (https://pub.dev/documentation/phoenix_wings/latest/html/PhoenixPresence-class.html) so that shouldn't be a problem. I'll check for online/offline callbacks. |
@SimonLab yeah, the top result when searching for google.com/search?q=flutter+phoenix+channels It's Which has recent activity/contribution: https://github.com/braverhealth/phoenix-socket-dart It has a "corporate sponsor" in the form of: https://braver.net/en/ And the lead dev @matehat seems to know what he's doing. 👌 This is the approach/route I would take. 💭 |
Quick issue https://github.com/braverhealth/phoenix-socket-dart/issues/ |
Is there any issue? I wonder if anyone using it in production one of those libraries? |
Flutter/Dart currently only has one Phoenix client library so we have two approaches to integrate Flutter and Phoenix:
Use the existing library: https://github.com/mfeckie/phoenix_wings
This is probably the easiest option, but we will run into some bugs/edge cases, such as heartbeat
ack
s that aren'timplemented by this library so we may have to make changes anyway.
Run our own on top of Darts web_socket_channel
phoenix.js
cloc
s in at around 800 lines of OO JavaScript code, so it wouldn't be a huge task to port this over to dart.This would provide us with a consistent API with the official library. I'm happy to do this as a "learn dart" exercise
The text was updated successfully, but these errors were encountered: