azure-webpubsub icon indicating copy to clipboard operation
azure-webpubsub copied to clipboard

Please add Azure Web PubSub to the Azure functions extension bundle

Open mithunshanbhag opened this issue 3 years ago • 4 comments

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?

mithunshanbhag avatar Sep 20 '21 10:09 mithunshanbhag

Yes. It's in progress and will take some time for a new package of bundle release. Will update when this is done.

JialinXin avatar Sep 22 '21 08:09 JialinXin

The bundle package (3.4 or later) seems to be missing the webPubSubContext trigger even though it has the extension package listed

oadrian2 avatar Aug 05 '22 01:08 oadrian2

I am not sure there is someone still following this thread - but, webPubSubContext is still missing.

ksdaniel avatar Jan 30 '23 13:01 ksdaniel

@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"
    }
  ]
}

JialinXin avatar Jan 31 '23 03:01 JialinXin