2015a566cb
The `onerror` event is only triggered if the buffer is full while the socket is closed, while the `onclose` event is called for any kind of disconnection: https://websockets.spec.whatwg.org/#closeWebSocket Fixes: https://github.com/owncast/owncast/issues/3958 Co-authored-by: Alyssa Ross <hi@alyssa.is>