Skip to content
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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

generate functions for sending messages #226

Open
derberg opened this issue Sep 25, 2023 · 6 comments
Open

generate functions for sending messages #226

derberg opened this issue Sep 25, 2023 · 6 comments
Labels
enhancement New feature or request

Comments

@derberg
Copy link
Member

derberg commented Sep 25, 2023

After we merge #220 the last bad user experience is 馃憞馃徏

    client.app.send(
        { command: "off" },
        {},
        "smartylighting/streetlights/1/0/action/12/turn/on"
    );

we should generate

function turnOn(message){
    app.send(
        message,
        {},
        "smartylighting/streetlights/1/0/action/12/turn/on"
    );
}

so later user can just do:

turnOn({ command: "off" })
@PUNEET-EMM
Copy link

Hello @derberg , i am new to asyncapi i want to work on this can you tell me more about it..

Copy link
Member Author

derberg commented Oct 2, 2023

hey, thanks, but it is already in progress in #220 PR

@PUNEET-EMM
Copy link

Okay , is their any other issue available ?? for new comer ...

@derberg
Copy link
Member Author

derberg commented Oct 3, 2023

@PUNEET-EMM maybe have a look at https://www.asyncapi.com/community/dashboard

@kaushik-rishi
Copy link
Collaborator

@PUNEET-EMM #220 Has been merged, would you like to work on this issue ?

@derberg I hope we still need this.

Copy link
Member Author

derberg commented May 8, 2024

yeah definitely, as for now to send a message somebody has to use client app api directly for sending, and remember topics names, instead of using a generated send functions, like we have for receiving

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants