From b9ff246015fc99284b2a7d00a5d56d5214d31a49 Mon Sep 17 00:00:00 2001 From: Joffrey BION Date: Mon, 22 May 2017 01:28:08 +0200 Subject: Remove old experimental page --- backend/src/main/resources/static/test-ws.js | 40 -------------------- backend/src/main/resources/static/test.html | 55 ---------------------------- 2 files changed, 95 deletions(-) delete mode 100644 backend/src/main/resources/static/test-ws.js delete mode 100644 backend/src/main/resources/static/test.html (limited to 'backend') diff --git a/backend/src/main/resources/static/test-ws.js b/backend/src/main/resources/static/test-ws.js deleted file mode 100644 index 1c64349e..00000000 --- a/backend/src/main/resources/static/test-ws.js +++ /dev/null @@ -1,40 +0,0 @@ -var stompClient = null; - -function connect() { - console.log('Connecting...'); - var socket = new SockJS('/seven-wonders-websocket'); - stompClient = Stomp.over(socket); - stompClient.connect({}, function (frame) { - console.log('Connected: ' + frame); - subscribeTo('/user/queue/errors'); - }); -} - -function send(endpoint, payload) { - stompClient.send(endpoint, {}, payload); -} - -function subscribeTo(endpoint) { - $("#test-feeds").prepend('' + endpoint + 'Subscribed'); - stompClient.subscribe(endpoint, function (data) { - $("#test-feeds").prepend('' + endpoint + 'Received:
' + data.body + '
'); - }); -} - -$(function () { - $("form").on('submit', function (e) { - e.preventDefault(); - }); - $("#send-btn").click(function () { - var endpoint = $("#path-field").val(); - var payload = $("#payload-field").val(); - send(endpoint, payload); - }); - $("#subscribe-btn").click(function () { - var endpoint = $("#subscribe-path-field").val(); - subscribeTo(endpoint); - }); -}); - -// auto-connect -connect(); \ No newline at end of file diff --git a/backend/src/main/resources/static/test.html b/backend/src/main/resources/static/test.html deleted file mode 100644 index e19f9eb3..00000000 --- a/backend/src/main/resources/static/test.html +++ /dev/null @@ -1,55 +0,0 @@ - - - - Seven Wonders - - - - - - - - - - -

Seven Wonders Test Page

- -

WS messages tests

- -
-
- - - -
-
- -
-
- - - - - -
-
- -

Subscribed feeds

- - - - - - - - - - -
EndpointData received
- - - - \ No newline at end of file -- cgit