ftx-api icon indicating copy to clipboard operation
ftx-api copied to clipboard

Try/catch any emit calls

Open tiagosiebler opened this issue 3 years ago • 0 comments

https://github.com/tiagosiebler/ftx-api/blob/master/src/websocket-client.ts#L354

Any emit calls in the ws client should be wrapped in try/catch, otherwise an exception thrown in implementation code (outside the connector) might trigger the error handlers inside the connector (e.g Exception parsing ws message), which can be misleading

tiagosiebler avatar Feb 02 '22 17:02 tiagosiebler