When a web socket error occurs, it is not passed to the onerror function that is provided during construction.