Skip to content

Commit aedfb0b

Browse files
author
tiagosiebler
committed
chore(): update example
1 parent 9e72e20 commit aedfb0b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

examples/ws-api-client.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,9 @@ async function main() {
6161
// https://github.com/tiagosiebler/awesome-crypto-examples/wiki/Timestamp-for-this-request-is-outside-of-the-recvWindow
6262
// wsClient.setTimeOffsetMs(-5000);
6363

64-
await wsClient.getWSClient().connectWSAPI();
64+
// Optional: prepare the WebSocket API connection in advance.
65+
// This happens automatically but you can do this early before making any API calls, to prevent delays from a cold start.
66+
// await wsClient.getWSClient().connectWSAPI();
6567

6668
try {
6769
const response = await wsClient.submitNewOrder({

0 commit comments

Comments
 (0)