websocket.onclose = function()

in app/src/audio-utils/streamAudioToWebsocket.js [92:102]


    websocket.onclose = function (closeEvent) {
      if (manuallyStopped) return;
      // micStream.stop();

      // the close event immediately follows the error event; only handle one.
      if (!socketError && !transcribeException) {
        if (closeEvent.code !== 1000) {
          onError('</i><strong>Streaming Exception</strong><br>' + closeEvent.reason);
        }
      }
    };