onSocketErrorReceived
TheonSocketErrorReceived event handler is called when an error is received from the WebSocket connection.
TelnyxSocketError
This class is used to represent an error received from the Telnyx Socket. It contains anerrorCode
which is an integer representing the error code and an errorMessage which is a string representing
the error message.