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.
Files changed (2) hide show
  1. package/README.md +2 -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({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "madeonsol-x402",
3
- "version": "0.5.1",
3
+ "version": "0.5.2",
4
4
  "description": "x402 client SDK for MadeOnSol Solana KOL intelligence API",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",