# build_websocket_url

> **Function** in `langgraph_sdk`

📖 [View in docs](https://reference.langchain.com/python/langgraph-sdk/stream/transport/base/build_websocket_url)

Convert an HTTP base URL plus API path into a WebSocket URL.

## Signature

```python
build_websocket_url(
    base_url: httpx.URL,
    path: str,
) -> str
```

---

[View source on GitHub](https://github.com/langchain-ai/langgraph/blob/916025d2f6d9f6ddb2628bd248bc4f3db632d9a8/libs/sdk-py/langgraph_sdk/stream/transport/base.py#L69)