Index: openacs-4/packages/xowiki/www/resources/streaming-chat.js =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/xowiki/www/resources/streaming-chat.js,v diff -u -N -r1.1.2.2 -r1.1.2.3 --- openacs-4/packages/xowiki/www/resources/streaming-chat.js 22 May 2020 09:29:19 -0000 1.1.2.2 +++ openacs-4/packages/xowiki/www/resources/streaming-chat.js 25 May 2020 06:52:30 -0000 1.1.2.3 @@ -38,7 +38,7 @@ if (status != 200 && status != 0) { console.error('Something wrong in HTTP request, status code = ' + status); } - if (status.match(/^4\d\d$/) == null) { + if (status < 400 || status >= 500) { console.log('Server has closed the connection. Try to reconnect in 10s...'); setTimeout(chatSubscribe, 10000, subscribe_url); }