-
-
Notifications
You must be signed in to change notification settings - Fork 255
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
[FEATURE] Dart/Flutter Support? #1357
Comments
Welcome to AsyncAPI. Thanks a lot for reporting your first issue. Please check out our contributors guide and the instructions about a basic recommended setup useful for opening a pull request. |
@JohnGalt1717 hey and thanks for the suggestion. Some followups:
btw, for models, you do not need generator. We can of course include models generation in such client template, but for models only you can already use https://github.com/asyncapi/cli and command like |
Yes, I was thinking 2 different types of clients: https://pub.dev/packages/web_socket And then model generation. The idea here being that raw web_sockets if that's what you're using and then signalR for those using it. |
I see https://pub.dev/packages/web_socket_channel is more popular although future goal of code gen here is to be super modular and support clients for one protocol and one language with different libraries/frameworks |
Not picky about which client, really as long as it's maintained. Last time I looked that one was separated into 3 modules for web, ios and android and no others. Looks like it's unified now so cool. |
I'd suggest we start with basic WebSocket client generation targeting web_socket_channel, include model generation integration with the AsyncAPI CLI, focus on a modular design that could later support different protocols/frameworks, and add proper error handling and reconnection logic out of the box. |
That works for me. SignalR just delimits its messages across the wire with a special character so there isn't a large lift. |
Why do we need this improvement?
Dart/Flutter now has a HUGE following and is 25% of all apps in the app stores. It would be highly beneficial if we could automatically generate clients and models for Dart using the Generator.
How will this change help?
By being able to generate Dart clients from AsyncApi it will eliminate a ton of boilerplate code that often breaks right now in Dart and we can couple to our servers
Screenshots
No response
How could it be implemented/designed?
Just a generator that generates all of the models (the page I found for dart thinks it's go... https://modelina.org/examples?selectedExample=generate-dart-models) and should generate clients automatically as well.
🚧 Breaking changes
No
👀 Have you checked for similar open issues?
🏢 Have you read the Contributing Guidelines?
Are you willing to work on this issue?
No, someone else can work on it.
The text was updated successfully, but these errors were encountered: