Skip to content

Commit 16a2d0a

Browse files
committed
chore(): update example, chore(): don't warn missing beautifier key by default
1 parent 8ade34e commit 16a2d0a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

examples/WebSockets/ws-api-raw-promises.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,8 @@ async function main() {
9494
* - coinmWSAPITestnet: coinm futures testnet
9595
*/
9696

97-
// const WS_API_WS_KEY: WSAPIWsKey = WS_KEY_MAP.mainWSAPI;
98-
const WS_API_WS_KEY: WSAPIWsKey = WS_KEY_MAP.mainWSAPITestnet;
97+
// Note: if you set "testnet: true" in the config, this will automatically resolve to WS_KEY_MAP.mainWSAPITestnet (you can keep using mainWSAPI).
98+
const WS_API_WS_KEY: WSAPIWsKey = WS_KEY_MAP.mainWSAPI;
9999

100100
// Optional, if you see RECV Window errors, you can use this to manage time issues. However, make sure you sync your system clock first!
101101
// https://github.com/tiagosiebler/awesome-crypto-examples/wiki/Timestamp-for-this-request-is-outside-of-the-recvWindow

src/websocket-client.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ export class WebsocketClient extends BaseWebsocketClient<
8787
private restClientCache: RestClientCache = new RestClientCache();
8888

8989
private beautifier: Beautifier = new Beautifier({
90-
warnKeyMissingInMap: true,
90+
warnKeyMissingInMap: false,
9191
});
9292

9393
private userDataStreamManager: UserDataStreamManager;

0 commit comments

Comments
 (0)