madeonsol-x402 0.5.1 → 0.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -108,8 +108,8 @@ Connect to `dex_ws_url` and use the multi-subscription protocol — up to **10 n
|
|
|
108
108
|
```ts
|
|
109
109
|
import WebSocket from "ws";
|
|
110
110
|
|
|
111
|
-
const { dex_ws_url } = await rest.getStreamToken();
|
|
112
|
-
const ws = new WebSocket(dex_ws_url
|
|
111
|
+
const { token, dex_ws_url } = await rest.getStreamToken();
|
|
112
|
+
const ws = new WebSocket(`${dex_ws_url}?token=${token}`); // token MUST be in the query string
|
|
113
113
|
|
|
114
114
|
ws.on("open", () => {
|
|
115
115
|
ws.send(JSON.stringify({
|