feat(v4.0.0-beta.5): BREAKING CHANGE: rename "error" event to "exception" to avoid unhandled exceptions
This commit is contained in:
@@ -117,7 +117,7 @@ function setWsClientEventListeners(
|
||||
websocketClient.on('reconnected', (data) => {
|
||||
console.log(new Date(), accountRef, 'ws has reconnected ', data?.wsKey);
|
||||
});
|
||||
websocketClient.on('error', (data) => {
|
||||
websocketClient.on('exception', (data) => {
|
||||
console.error(new Date(), accountRef, 'ws exception: ', data);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user