ing / latencies.length;

            if (latency < lmin) {
                lmin  = latency;
            }
            if (latency > lmax) {
                lmax  = latency;
            }

            showStats();
            //console.log("<< check_respond");
        }

        function sendMsg() {
            var arr = [];
            if (! ws.flush() ) {
                message("WebSocket not ready, backing off");
                actualSendDelay = actualSendDelay * 2;
                send_ref = setTimeout