src/main/resources/static/application.js
/**
 * Build the web socket URL based on the current window location and protocol.
 * 
 * @returns the url
 */
Build the web socket URL based on the current window location and protocol.

@returns the url
Build the web socket URL based on the current window location and protocol . @returns the url
function buildWebSocketUrl() {
    let url = "";
    if (window.location.protocol === "https:") {
        url += "wss://";
    } else {
        url += "ws://";
    }
    url += window.location.host;
    url += window.location.pathname + "web-socket";
    return url;
}
function buildWebSocketUrl ( ) { let url = "" ; if ( window . location . protocol === "https:" ) { url += "wss://" ; } else { url += "ws://" ; } url += window . location . host ; url += window . location . pathname + "web-socket" ; return url ; }
Build the web socket URL based on the current window location and protocol.
Build the web socket URL based on the current window location and protocol .