const API_URL='http://localhost:6080/api/'; console.log("Hello World"); const connection = { ws: [], node_list: [], } function establishConnection() { const ws = new WebSocket('ws://localhost:6000'); } function updateTableStats() { } async function getTableContent() { let response = await fetch(API_URL + "get_table_content"); let content = await response.json() console.log(content); } (async () => { await getTableContent() })();