-
Notifications
You must be signed in to change notification settings - Fork 4
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
[PR] Flutter
+ Phoenix
Channels
Demo Initial Implementation.
#2
Conversation
Still on the fence about using dwyl/phoenix-chat-example#152 or just creating my own Will focus on creating the Flutter app first, try to connect to a simple channel on a locally-developed Phoenix and then tackle this. |
Will be having both I'm going to create a simple |
I finally got Flutter and Phoenix to connect. It wasn't working initially because the Phoenix Socket URL wasn't quite clear which one I had to connect to. Turns out I've added Presence and I'm trying to "catch" user disconnects to properly show the list of connected users on the Flutter counterpart. I've tried using Hoppscotch for this but I can't seem to send parameters (user information) through here (at least successfully). ![image](https://user-images.githubusercontent.com/17494745/217058291-b17f10f8-04bc-4892-89c3-02ed1ebc6f11.png)Trying to get two emulators working so I can check multiple clients and see the |
Finally got it working. At first I was a bit confused with how
I had to use However, I couldn't get this to work with Flutter. I tried capturing the events normally in the channel (like Turns out that tI needed to use From there on out, I could parse and map the meta information in each. All of these steps will be detailed in the |
@LuchoTurtle looking good. thanks for capturing as much of your learning as possible. 👍 |
I think it looks good for review. |
…ter-phoenix-channels-demo into initial-implementation
Flutter
+ Phoenix
Channels
Demo Initial Implementation.
The It just goes straight into Creating the App. What is the advantage to having a |
In the section, I state that each folder (which have links to their The And I personally don't find the gif microscopic (?), I actually made it have these dimensions intentionally so they wouldn't take the whole width needlessly. |
I thought adding "follow the instructions inside each one" would grammatically make sense after saying "folders". But if it's not clear to you, it's no bueno. |
Why are you using an iPhone 14 Pro MAX as your simulator device? Are you deliberately trying to make your screenshots as big as they possibly can be? 🤷♂️ The content you are showing in the App is tiny: Why not pick a device that doesn't fill my screen with more than 50% of whitespace? Yes, it's an "inferior" device. But as noted in: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This demo could definitely have been a lot simpler by connecting the Flutter
app to the Chat Example
: https://phoenix-chat.fly.dev/ which has Phoenix Channels
.
So this demo only needed to focus on the Flutter
part and not force them to understand how the Phoenix
part works. Not that we don't want people to understand both parts. But if we can simplify it for people learning that's a good thing.
Anyway, merging. It's fine. 👌
closes #1
This PR will create a
Flutter
application that will connect to aPhoenix
server through websocketsstating who is online or not.