From 5f011747649539c57bcdff14ad56abf4b434d408 Mon Sep 17 00:00:00 2001 From: Rohan Sircar Date: Thu, 6 Aug 2020 19:35:17 +0530 Subject: [PATCH] Adjusted websocket deps Added to bundle with yarn Added cdn links to head fragment --- package.json | 4 +- .../resources/templates/fragments/head.html | 7 + src/main/resources/templates/ws.html | 2 - yarn.lock | 190 +++++++++++++++++- 4 files changed, 199 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index f7b79ac..1445277 100644 --- a/package.json +++ b/package.json @@ -24,7 +24,9 @@ "moment": "^2.24.0", "promise-worker": "^2.0.1", "sjcl": "^1.0.8", - "sprintf-js": "^1.1.2" + "sockjs-client": "^1.5.0", + "sprintf-js": "^1.1.2", + "stompjs": "^2.3.3" }, "devDependencies": { "browserify": "^16.5.0", diff --git a/src/main/resources/templates/fragments/head.html b/src/main/resources/templates/fragments/head.html index 25e1d45..407a672 100644 --- a/src/main/resources/templates/fragments/head.html +++ b/src/main/resources/templates/fragments/head.html @@ -57,6 +57,13 @@ + + + diff --git a/src/main/resources/templates/ws.html b/src/main/resources/templates/ws.html index e3e7436..88293e3 100644 --- a/src/main/resources/templates/ws.html +++ b/src/main/resources/templates/ws.html @@ -2,8 +2,6 @@ Chat WebSocket - -