ync
  src="https://ga.jspm.io/npm:es-module-shims@1.5.1/dist/es-module-shims.js"
  crossorigin="anonymous"
></script>


<script type="module">
    import { Client } from '@stomp/stompjs';

    var stompClient = null;

    stompClient = new Client({
        brokerURL: 'ws://localhost:8080/myendpoint',
        onConnect: (frame) => {
            console.log('Connected: ' + JSON.stringify(frame));
            document.getElementById('username').innerText = frame.headers['user-name'];

            stompClient.s