# runAsEmulator

- Module: [Aspire.Hosting.Azure.WebPubSub](/reference/api/typescript/aspire.hosting.azure.webpubsub.md)
- Version: `17.0.0`
- Kind: `method`
- Source: [GitHub](https://github.com/microsoft/aspire/tree/2d325b13709752ba6d9a943635c5e2940a2530c0)

Configures Azure Web PubSub to run locally using the emulator container.

## Definition

```typescript
interface AzureWebPubSubResource {
  // ... omitted for brevity
  runAsEmulator(configureContainer?: (obj: AzureWebPubSubEmulatorResource) => Promise<void>): AzureWebPubSubResource
}
```

## Parameters

- `configureContainer` (`(obj: AzureWebPubSubEmulatorResource) => Promise<void>`) `optional`

## Returns

[AzureWebPubSubResource](/reference/api/typescript/aspire.hosting.azure.webpubsub/azurewebpubsubresource.md) `builder`

## Applies to

- [AzureWebPubSubResource](/reference/api/typescript/aspire.hosting.azure.webpubsub/azurewebpubsubresource.md)
