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
| Local hosted-compatible relay |`ws://localhost:5005/ws?apiKey=YOUR_PMXT_API_KEY`|
86
78
87
-
curl supports WebSocket when `curl --version` lists `ws` and `wss` under protocols. These piped examples require curl `8.16.0` or newer so curl can send the subscription frame from stdin. curl `8.11.x` can list `ws` / `wss` but still fail here with `curl: (22) Refused WebSockets upgrade: 400`.
88
-
89
-
<Warning>
90
-
Do not put quote characters around the API key inside the URL. `?apiKey='pmxt_...'` sends the quotes as part of the key and the WebSocket upgrade will be rejected.
91
-
</Warning>
92
-
93
-
If you still see `curl: (22) Refused WebSockets upgrade: 400`, use curl `8.16.0` or newer, or use the raw Python WebSocket example below.
94
-
95
-
```bash
96
-
export PMXT_API_KEY="YOUR_PMXT_API_KEY"
97
-
export PMXT_WS_URL="wss://api.pmxt.dev/ws"
98
-
99
-
curl --version
100
-
# Confirm the version is 8.16.0+ and the Protocols line includes ws and wss.
When testing a PMXT-compatible hosted relay locally, use the same message shape and switch only the URL:
127
-
128
-
```bash
129
-
export PMXT_WS_URL="ws://localhost:5005/ws"
130
-
```
131
-
132
-
Do not use `--data` or `--data-binary` for this. Those options send an HTTP request body instead of a WebSocket frame.
133
-
134
-
If your curl is older, use a WebSocket client library directly. This Python example does not use the PMXT SDK; it connects to the same raw WebSocket URL that a Rust or Go client would use.
79
+
This Python example does not use the PMXT SDK; it connects to the same raw WebSocket URL that a Rust or Go client would use.
0 commit comments