# Websocket (/ws) documentation?

**URL:** <https://dev-forum.pyth.network/t/websocket-ws-documentation/227>\
**Category:** Price Feeds\
**Created:** [June 22, 2025, 5:11pm UTC](https://dev-forum.pyth.network/t/websocket-ws-documentation/227 "2025-06-22T17:11:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![flex](https://avatars.discourse-cdn.com/v4/letter/f/8baadc/32.png) [@flex](https://dev-forum.pyth.network/u/flex)\
**Post date:** [June 22, 2025, 5:11pm UTC](https://dev-forum.pyth.network/t/websocket-ws-documentation/227/1 "2025-06-22T17:11:40Z")

</div>

Hi Pythians,

Is there any documentation available for the `/ws` WebSocket endpoint?

`https://www.pyth.network/pyth-price-feeds` opens a connection to `wss://hermes.pyth.network/ws` and sends the following message:

```auto
{"ids":[…],"type":"subscribe"}

```

The “why”: I want to see if it’s possible to replace our current usage of SSE (`/v2/updates/price/stream`) to have VAA bytes/price updates pushed down a bit faster.

Thanks!

---

<div class="post-metadata">

**Author:** ![tejas\_pyth](https://avatars.discourse-cdn.com/v4/letter/t/a698b9/32.png) [@tejas\_pyth](https://dev-forum.pyth.network/u/tejas_pyth)\
**Post date:** [June 22, 2025, 11:16pm UTC](https://dev-forum.pyth.network/t/websocket-ws-documentation/227/2 "2025-06-22T23:16:53Z")

</div>

Gm @flex , we do have an undocumented WS endpoint, but we recommend using the documented SSE endpoint – they’re functionally the same in terms of latency, there isn’t a speed advantage in using the websockets endpoint.
