Repository navigation
v2.0.1 — contract 2.0.1
Generated from contract 2.0.1.
client.ws.token()(POST /v1/ws/token): a short-lived WebSocket token (60 seconds, one connection) to open the stream without handing your API key to a web page.- TypeScript stream: the API key never goes into a URL any more. New
tokenoption — a function returning a fresh token, typically from your backend — called before every connection and reconnection; the key is then not sent at all. Without thewspackage (browser, Deno, Bun) and withouttoken, the stream asksPOST /v1/ws/tokenfor a token instead of putting the key in?api_key=. Withws(Node), the key stays in theX-API-KEYheader. - The API now refuses plain
http://(403https_required) instead of redirecting: the SDKs always usehttps://, nothing to change on your side.
Install:
pip install https://github.com/bytnode/bytnode-SDK/releases/download/v2.0.1/bytnode-2.0.1-py3-none-any.whl
npm install https://github.com/bytnode/bytnode-SDK/releases/download/v2.0.1/bytnode-2.0.1.tgz