diff --git a/src/app/static/ws_listener.js b/src/app/static/ws_listener.js index a91d6f3..89cd1eb 100644 --- a/src/app/static/ws_listener.js +++ b/src/app/static/ws_listener.js @@ -1,16 +1,5 @@ let ws = new WebSocket('ws://' + document.location.host + '/ws'); -// ws.onopen = function() { -// ws.send(JSON.stringify({ -// 'anchor': '', -// 'data': 'Hello, World!' -// })); -// }; - -// TODO: annotate objects that can fire events -// TODO: annotate objects that should receive response from events -// TODO: work out object notation for events that are fired -// TODO: work out object notation for responses $('#container').on('click', '.anchor', ( function (event) { let anchorName = $(this).attr('id').replace('_event', '');