add example and test for private contract v3 websocket topics

This commit is contained in:
tiagosiebler
2022-11-12 13:29:12 +00:00
parent 750db0232c
commit 9d464be3b2
5 changed files with 103 additions and 2 deletions

View File

@@ -51,6 +51,9 @@ import { DefaultLogger, WS_KEY_MAP, WebsocketClient } from '../src';
wsClient.on('reconnected', (data) => {
console.log('ws has reconnected ', data?.wsKey);
});
// wsClient.on('error', (data) => {
// console.error('ws exception: ', data);
// });
// Inverse
// wsClient.subscribe('trade');