Skip to content

Commit

Permalink
Cryptocompare: Log unexpected message (#3300)
Browse files Browse the repository at this point in the history
  • Loading branch information
alecgard authored May 22, 2024
1 parent 609467b commit 8b2c4ea
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/little-yaks-smash.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@chainlink/cryptocompare-adapter': minor
---

Log unexpected messages warning
1 change: 1 addition & 0 deletions packages/sources/cryptocompare/src/transport/crypto-ws.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ export const wsTransport = new WebSocketTransport<WsEndpointTypes>({
)
resolve()
} else {
logger.warn(parsed, 'Unexpected message after WS connection open')
reject(new Error('Unexpected message after WS connection open'))
}
})
Expand Down

0 comments on commit 8b2c4ea

Please sign in to comment.