Keep reconnecting to the streaming server after a 4429 close

A 4429 (Too Many Requests) close stopped streaming until restart along
with the other 44xx codes. Retry it on the normal backoff schedule.
This commit is contained in:
Dan Stillman 2026-10-07 11:20:45 -04:00
parent a69b55ea96
commit b0db83d9dc

View file

@ -347,7 +347,8 @@ Zotero.Streamer_Module.prototype = {
this._subscriptions.clear();
if (this._reconnect) {
if (event.code >= 4400 && event.code < 4500) {
// Keep retrying on 4429 (Too Many Requests)
if (event.code >= 4400 && event.code < 4500 && event.code != 4429) {
Zotero.debug("Not reconnecting to WebSocket due to client error");
return;
}