We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d619c68 commit 2ae0c28Copy full SHA for 2ae0c28
websocket/endpoint-wss/src/main/webapp/websocket.js
@@ -1,5 +1,5 @@
1
-var wsUri = "wss://" + document.location.host + document.location.pathname + "websocket";
2
-//var wsUri = "ws://localhost:8080" + document.location.pathname + "websocket";
+var wsUri = "wss://" + document.location.host + "/endpoint-wss/websocket";
+//var wsUri = "ws://" + document.location.hostname + ":8080/endpoint-wss/websocket";
3
console.log("Connecting to " + wsUri);
4
var websocket = new WebSocket(wsUri);
5
websocket.onopen = function(evt) { onOpen(evt) };
0 commit comments