azure-webpubsub
azure-webpubsub copied to clipboard
Please add Azure Web PubSub to the Azure functions extension bundle
Currently, Microsoft.Azure.WebJobs.Extensions.WebPubSub is not a part of the functions extension bundle and I'm forced to register it separately.
func extensions install --package Microsoft.Azure.WebJobs.Extensions.WebPubSub --version 1.0.0-beta.3
Would it be possible to add this package to the functions extension bundle?
Yes. It's in progress and will take some time for a new package of bundle release. Will update when this is done.
The bundle package (3.4 or later) seems to be missing the webPubSubContext trigger even though it has the extension package listed
I am not sure there is someone still following this thread - but, webPubSubContext is still missing.
@ksdaniel @oadrian2 It should be able to work with bundle v3.3.0+. Please confirm the extension bundle is 3.3.0+ like below in host.json
.
"extensionBundle": {
"id": "Microsoft.Azure.Functions.ExtensionBundle",
"version": "[3.3.*, 4.0.0)"
}
And WebPubSubContext
is the input binding type to use like below. Please check sample.
{
"disabled": false,
"bindings": [
{
"authLevel": "anonymous",
"type": "httpTrigger",
"direction": "in",
"name": "req"
},
{
"type": "http",
"direction": "out",
"name": "$return"
},
{
"type": "webPubSubContext",
"name": "wpsReq",
"direction": "in"
},
{
"type": "webPubSub",
"name": "actions",
"hub": "sample_funcchat",
"direction": "out"
}
]
}