> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.nvidia.com/nemo/labs-voice-agent/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.nvidia.com/nemo/labs-voice-agent/_mcp/server.

# nemo_voice_agent.utils.websocket_url

## Module Contents

### Functions

| Name                                                                                               | Description                                                              |
| -------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------ |
| [`_normalize_websocket_host`](#nemo_voice_agent-utils-websocket_url-_normalize_websocket_host)     | -                                                                        |
| [`_normalize_websocket_scheme`](#nemo_voice_agent-utils-websocket_url-_normalize_websocket_scheme) | -                                                                        |
| [`build_websocket_url`](#nemo_voice_agent-utils-websocket_url-build_websocket_url)                 | Build the client-facing WebSocket URL from trusted server configuration. |

### API

```python
nemo_voice_agent.utils.websocket_url._normalize_websocket_host(
    host: str
) -> str
```

```python
nemo_voice_agent.utils.websocket_url._normalize_websocket_scheme(
    scheme: str
) -> str
```

```python
nemo_voice_agent.utils.websocket_url.build_websocket_url(
    host: str,
    port: int,
    scheme: str = 'ws'
) -> str
```

Build the client-facing WebSocket URL from trusted server configuration.