From 67b896ed8841be121260e2ba79cb718322ad299f Mon Sep 17 00:00:00 2001 From: Tiago Siebler Date: Fri, 7 Jun 2024 16:32:32 +0100 Subject: [PATCH] chore(): fix typo --- README.md | 2 +- examples/ws-private-perp-futures-wsapi.ts | 2 +- examples/ws-private-perp-futures.ts | 2 +- examples/ws-private-spot-wsapi.ts | 4 +++- examples/ws-private-spot.ts | 2 +- examples/ws-public.ts | 2 +- 6 files changed, 8 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index d257886..1f458a0 100644 --- a/README.md +++ b/README.md @@ -272,7 +272,7 @@ async function start() { console.log(new Date(), 'ws connected ', data?.wsKey); }); - // Something happened, attempting to reconenct + // Something happened, attempting to reconnect client.on('reconnect', (data) => { console.log(new Date(), 'ws reconnect: ', data); }); diff --git a/examples/ws-private-perp-futures-wsapi.ts b/examples/ws-private-perp-futures-wsapi.ts index 5c99563..61593e9 100644 --- a/examples/ws-private-perp-futures-wsapi.ts +++ b/examples/ws-private-perp-futures-wsapi.ts @@ -45,7 +45,7 @@ async function start() { // console.info(new Date(), 'ws data received: ', JSON.stringify(data, null, 2)); // }); - // Something happened, attempting to reconenct + // Something happened, attempting to reconnect client.on('reconnect', (data) => { console.log(new Date(), 'ws reconnect: ', data); }); diff --git a/examples/ws-private-perp-futures.ts b/examples/ws-private-perp-futures.ts index 9f3db0a..13ebf76 100644 --- a/examples/ws-private-perp-futures.ts +++ b/examples/ws-private-perp-futures.ts @@ -40,7 +40,7 @@ async function start() { console.info('data received: ', JSON.stringify(data)); }); - // Something happened, attempting to reconenct + // Something happened, attempting to reconnect client.on('reconnect', (data) => { console.log('reconnect: ', data); }); diff --git a/examples/ws-private-spot-wsapi.ts b/examples/ws-private-spot-wsapi.ts index 7c88687..00eca78 100644 --- a/examples/ws-private-spot-wsapi.ts +++ b/examples/ws-private-spot-wsapi.ts @@ -35,6 +35,8 @@ async function start() { customLogger, ); + client.sendWSAPIRequest('perpFuturesUSDTV4', 'futures.login'); + client.on('open', (data) => { console.log(new Date(), 'ws connected ', data?.wsKey); }); @@ -45,7 +47,7 @@ async function start() { // console.info(new Date(), 'ws data received: ', JSON.stringify(data, null, 2)); // }); - // Something happened, attempting to reconenct + // Something happened, attempting to reconnect client.on('reconnect', (data) => { console.log(new Date(), 'ws reconnect: ', data); }); diff --git a/examples/ws-private-spot.ts b/examples/ws-private-spot.ts index fa98bdb..5938ce6 100644 --- a/examples/ws-private-spot.ts +++ b/examples/ws-private-spot.ts @@ -40,7 +40,7 @@ async function start() { console.info('data received: ', JSON.stringify(data)); }); - // Something happened, attempting to reconenct + // Something happened, attempting to reconnect client.on('reconnect', (data) => { console.log('reconnect: ', data); }); diff --git a/examples/ws-public.ts b/examples/ws-public.ts index 203284f..e52ba84 100644 --- a/examples/ws-public.ts +++ b/examples/ws-public.ts @@ -30,7 +30,7 @@ async function start() { console.info('data received: ', JSON.stringify(data)); }); - // Something happened, attempting to reconenct + // Something happened, attempting to reconnect client.on('reconnect', (data) => { console.log('reconnect: ', data); });