Skip to content

Commit 90929ed

Browse files
Merge pull request #3309 from pyth-network/devin/1765962665-add-pyth-lazer-2
docs: add pyth-lazer-2 WebSocket endpoint to developer-hub documentation
2 parents b021cfe + e4f2d55 commit 90929ed

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

apps/developer-hub/content/docs/price-feeds/pro/acquire-access-token.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ const client = await PythLazerClient.create(
3030
[
3131
"wss://pyth-lazer-0.dourolabs.app/v1/stream",
3232
"wss://pyth-lazer-1.dourolabs.app/v1/stream",
33+
"wss://pyth-lazer-2.dourolabs.app/v1/stream",
3334
],
3435
"YOUR_ACCESS_TOKEN",
3536
);

apps/developer-hub/content/docs/price-feeds/pro/getting-started.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@ const client = await PythLazerClient.create({
117117
urls: [
118118
"wss://pyth-lazer-0.dourolabs.app/v1/stream",
119119
"wss://pyth-lazer-1.dourolabs.app/v1/stream",
120+
"wss://pyth-lazer-2.dourolabs.app/v1/stream",
120121
],
121122
token: process.env.ACCESS_TOKEN!,
122123
});

apps/developer-hub/content/docs/price-feeds/pro/subscribe-to-prices.mdx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,12 @@ The websocket servers are available at:
2121

2222
- `wss://pyth-lazer-0.dourolabs.app/v1/stream`
2323
- `wss://pyth-lazer-1.dourolabs.app/v1/stream`
24+
- `wss://pyth-lazer-2.dourolabs.app/v1/stream`
2425

2526
<Callout type="warning" title="Redundancy Required">
2627
For redundancy and to avoid interruptions during deployments, you must connect
27-
to **both endpoints**. During deployments, a single endpoint will briefly go
28-
down, so maintaining open connections to both endpoints ensures continuous
28+
to **all endpoints**. During deployments, a single endpoint will briefly go
29+
down, so maintaining open connections to all endpoints ensures continuous
2930
service availability.
3031
</Callout>
3132

@@ -102,6 +103,7 @@ const client = await PythLazerClient.create(
102103
[
103104
"wss://pyth-lazer-0.dourolabs.app/v1/stream",
104105
"wss://pyth-lazer-1.dourolabs.app/v1/stream",
106+
"wss://pyth-lazer-2.dourolabs.app/v1/stream",
105107
],
106108
"YOUR_ACCESS_TOKEN",
107109
);

0 commit comments

Comments
 (0)