That event occurs when the WebSocket gets an error.
If you would like to get the error message, you should access the ErrorEventArgs.Message property.
And if the error is due to an exception, you can get it by accessing the ErrorEventArgs.Exception property.