# AzureWebPubSubResource.runAsEmulator

- Module: [Aspire.Hosting.Azure.WebPubSub](/reference/api/typescript/aspire.hosting.azure.webpubsub.md)
- Defined on: [AzureWebPubSubResource](/reference/api/typescript/aspire.hosting.azure.webpubsub/azurewebpubsubresource.md)
- Version: `17.0.0`
- Kind: `method`

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;
}
```

## Signature

```typescript
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`

## Defined on

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