diff -r 08f91a68e757 -r 6bb819bf919b www/js/global.js --- a/www/js/global.js Sat Apr 10 16:36:05 2021 +0200 +++ b/www/js/global.js Sun Apr 11 10:09:44 2021 +0200 @@ -1,9 +1,9 @@ /***************************************************************************** - * Copyright (C) 2014-2020 + * Copyright (C) 2014-2021 * * Michiel Broek * - * This file is part of BrewCloud + * This file is part of BMS * * This is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the @@ -773,17 +773,8 @@ /* Websocket interface. Place "websocket.onmessage = function(evt) {}" in the user script. */ var websocket = new ReconnectingWebSocket('ws://'+location.hostname+'/ws'); -websocket.onopen = function(evt) { - $('#wsstatus').html('WebSocket open'); -} - -websocket.onclose = function(evt) { - $('#wsstatus').html('WebSocket closed'); -} - websocket.onerror = function(event) { console.log('Websocket error: ' + event.data); - $('#wsstatus').html('WebSocket error: ' + event.data); } $(document).ready(function() {