You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: pages/price-feeds/pro/subscribe-price-updates.mdx
+16-3Lines changed: 16 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,7 +12,17 @@ Subscribing to prices is a three-step process:
12
12
2.**Configure** subscription parameters.
13
13
3.**Subscribe** to the prices via [websocket API](https://pyth-lazer.dourolabs.app/docs).
14
14
15
-
The websocket server is available at `wss://pyth-lazer.dourolabs.app/v1/stream{:bash}`.
15
+
The websocket servers are available at:
16
+
17
+
-`wss://pyth-lazer-0.dourolabs.app/v1/stream`
18
+
-`wss://pyth-lazer-1.dourolabs.app/v1/stream`
19
+
20
+
<Callouttype="warning"emoji="⚠️">
21
+
**Redundancy Required**: For redundancy and to avoid interruptions during
22
+
deployments, you must connect to **both endpoints**. During deployments, a
23
+
single endpoint will briefly go down, so maintaining open connections to both
24
+
endpoints ensures continuous service availability.
25
+
</Callout>
16
26
17
27
<Steps>
18
28
@@ -68,13 +78,16 @@ To subscribe to the prices, send a request to the websocket server. The server w
68
78
npm install --save @pythnetwork/pyth-lazer-sdk
69
79
```
70
80
71
-
2. Then create a [`PythLazerClient`](https://github.com/pyth-network/pyth-crosschain/blob/main/lazer/sdk/js/src/client.ts#L32) object using the URL and the access token requested from our authorized distribution partners (Pyth Data Distributors) in the first step:
81
+
2. Then create a [`PythLazerClient`](https://github.com/pyth-network/pyth-crosschain/blob/main/lazer/sdk/js/src/client.ts#L51) object using both endpoint URLs and the access token requested from our authorized distribution partners (Pyth Data Distributors) in the first step:
0 commit comments