const API_URL='http://localhost:6080/api/'; 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"); let content = await response.json() console.log(content); }