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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FeatureRequest] --WebPubSub class and UserEventResponse-- #1473

Open
DamyanBG opened this issue Apr 10, 2024 · 1 comment
Open

[FeatureRequest] --WebPubSub class and UserEventResponse-- #1473

DamyanBG opened this issue Apr 10, 2024 · 1 comment
Assignees
Labels

Comments

@DamyanBG
Copy link

I am looking at the documentation for Web PubSub and more precisely Tutorial: Create a serverless real-time chat app with Azure Functions and Azure Web PubSub service. There I want to contribute and to add example for Python, but I have 2 concerns. First is that there is no functionality like in Javascript and C# for returning direct response to the caller:

`module.exports = async function (context, data) {

context.bindings.actions = {
actionName: "sendToAll",
data: [${context.bindingData.request.connectionContext.userId}] ${data},
dataType: context.bindingData.dataType,
};
// UserEventResponse directly return to caller
var response = {
data: "[SYSTEM] ack.",
dataType: "text",
};
return response;
};`

I think there is a good idea to add some class which supports the request from webPubSubTrigger and functionality to return the message to the caller.

@bhagyshricompany bhagyshricompany self-assigned this Apr 16, 2024
@bhagyshricompany
Copy link

Thanks for reporting will update you.

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

No branches or pull requests

2 participants