Skip to content

Commit

Permalink
chore(): log error event in example
Browse files Browse the repository at this point in the history
  • Loading branch information
tiagosiebler committed Feb 1, 2024
1 parent 71e8b5c commit b716de2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions examples/ws-public-spot-orderbook.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,9 @@ import {
wsClient.on('reconnected', (data) => {
console.log('ws has reconnected ', data?.wsKey);
});
wsClient.on('error', (data) => {
console.error(`ws error: `, data?.wsKey, data);
});

// Request subscription to the following symbol trade events:
const symbols = ['BTCUSDT', 'ETHUSDT', 'BNBUSDT'];
Expand Down

0 comments on commit b716de2

Please sign in to comment.