# Aspire.Hosting.Azure.WebPubSub

- Module: `Aspire.Hosting.Azure.WebPubSub`
- Version: `13.4.0`
- Source: [GitHub](https://github.com/microsoft/aspire)
- Functions: `4`
- Types: `3`

## Types

- [AzureWebPubSubHubResource](/reference/api/typescript/aspire.hosting.azure.webpubsub/azurewebpubsubhubresource.md) -- `handle` - 1 members
- [AzureWebPubSubResource](/reference/api/typescript/aspire.hosting.azure.webpubsub/azurewebpubsubresource.md) -- `handle` - 1 members

## Functions

- [addAzureWebPubSub](/reference/api/typescript/aspire.hosting.azure.webpubsub/addazurewebpubsub.md) -- `method` -- Adds an Azure Web PubSub resource to the application model. Change sku: WithParameter("sku", "Standard_S1") Change capacity: WithParameter("capacity", 2)
- [addEventHandler](/reference/api/typescript/aspire.hosting.azure.webpubsub/addeventhandler.md) -- `method` -- Adds an event handler to an Azure Web PubSub hub.
- [addHub](/reference/api/typescript/aspire.hosting.azure.webpubsub/addhub.md) -- `method` -- Adds an Azure Web Pub Sub hub resource to the application model.
- [withWebPubSubRoleAssignments](/reference/api/typescript/aspire.hosting.azure.webpubsub/withwebpubsubroleassignments.md) -- `method` -- Assigns the specified roles to the given resource, granting it the necessary permissions on the target Azure Web PubSub resource. This replaces the default role assignments for the resource.

## Enums

- [AzureWebPubSubRole](/reference/api/typescript/aspire.hosting.azure.webpubsub/azurewebpubsubrole.md) -- `enum` - 3 values -- Represents ATS-compatible Azure Web PubSub roles.
