Skip to content

Commit 5cc922c

Browse files
Merge pull request #309821 from v-rakegurram-MSFT/patch-44
(AzureCXP) fixes MicrosoftDocs/azure-docs-pr#540955
2 parents 33f5dd6 + 031254a commit 5cc922c

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

articles/azure-functions/functions-bindings-web-pubsub-input.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Our extension provides two input binding targeting different needs.
2121

2222
- [`WebPubSubContext`](#webpubsubcontext)
2323

24-
When using is Static Web Apps, `HttpTrigger` is the only supported trigger and under Web PubSub scenario, we provide the `WebPubSubContext` input binding helps users deserialize upstream http request from service side under Web PubSub protocols. So customers can get similar results comparing to `WebPubSubTrigger` to easily handle in functions.
24+
When using Static Web Apps, `HttpTrigger` is the only supported trigger. In Web PubSub scenarios, the `WebPubSubContext` input binding helps users deserialize upstream HTTP requests from the service under Web PubSub protocols. So customers can get similar results comparing to `WebPubSubTrigger` to easily handle in functions.
2525
When used with `HttpTrigger`, customer requires to configure the HttpTrigger exposed url in event handler accordingly.
2626

2727
## `WebPubSubConnection`
@@ -683,4 +683,5 @@ For `WebPubSubEventRequest`, it's deserialized to different classes that provide
683683
| `DisconnectedEventRequest` | Used in system `Disconnected` event type | Reason |
684684

685685
> [!NOTE]
686-
> Though the `WebPubSubContext` is an input binding provides similar request deserialize way under `HttpTrigger` comparing to `WebPubSubTrigger`, there's limitations, i.e. connection state post merge isn't supported. The return response is still respected by the service side, but users require to build the response themselves. If users have needs to set the event response, you should return a `HttpResponseMessage` contains `ConnectEventResponse` or messages for user event as **response body** and put connection state with key `ce-connectionstate` in **response header**.
686+
687+
> Though the `WebPubSubContext` is an input binding provides similar request deserialize way under `HttpTrigger` comparing to `WebPubSubTrigger`, there's limitations, i.e. connection state post merge isn't supported. The return response is still respected by the service side, but users require to build the response themselves. If users have needs to set the event response, you should return a `HttpResponseMessage` contains `ConnectEventResponse` or messages for user event as **response body** and put connection state with key `ce-connectionstate` in **response header**.

0 commit comments

Comments
 (0)