chore(): add logger injection to example

This commit is contained in:
tiagosiebler
2025-02-06 12:14:28 +00:00
parent 57b1a72b7f
commit 2f18edec02

View File

@@ -18,7 +18,7 @@ const logger = {
* If a connection drops, the client will clean it up, respawn a fresh connection and resubscribe for you. * If a connection drops, the client will clean it up, respawn a fresh connection and resubscribe for you.
*/ */
const wsClient = new WebsocketClient(); const wsClient = new WebsocketClient({}, logger);
wsClient.on('update', (data) => { wsClient.on('update', (data) => {
console.log('raw message received ', JSON.stringify(data)); console.log('raw message received ', JSON.stringify(data));