blishButton").onclick = () => {
        fetch(publishURL, {
            method: 'POST', // works with PUT as well, though that sends an OPTIONS request too!
            body: `It is ${new Date().toString()}. This is a test.`
        })
    };

    // Incoming events
    websocket.onopen = () => {
        let event = document.createElement('div');
        event.innerHTML = `WebSocket connected to ${subscribeURL}`;
        events.appendChild(event);
    };
    websocket.onerror = (e) => {
        let event = 