fix(v4.0.0-beta.4): demo trading wss should only be used for private connections

This commit is contained in:
tiagosiebler
2025-02-06 11:11:36 +00:00
4 changed files with 12 additions and 7 deletions

View File

@@ -17,7 +17,12 @@ const logger = {
* - Heartbeats/ping/pong/reconnects are all handled automatically.
* If a connection drops, the client will clean it up, respawn a fresh connection and resubscribe for you.
*/
const wsClient = new WebsocketClient({}, logger);
const wsClient = new WebsocketClient(
{
// demoTrading: true,
},
logger,
);
wsClient.on('update', (data) => {
console.log('raw message received ', JSON.stringify(data));