Skip to content

Commit 4e07c52

Browse files
authored
Merge pull request #31 from stalleyj/socket
Modify websocket definition
2 parents f7c8523 + 2b0b8e9 commit 4e07c52

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

dashboard/src/main/java/com/ibm/javametrics/web/JavametricsWebSocket.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
* Websocket Endpoint implementation for JavametricsWebSocket
3131
*/
3232

33-
@ServerEndpoint(value = "/", subprotocols = "javametrics-dash")
33+
@ServerEndpoint(value = "/javametrics-socket", subprotocols = "/")
3434
public class JavametricsWebSocket implements Emitter {
3535

3636
private Set<Session> openSessions = new HashSet<>();

dashboard/src/main/webapp/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@
108108
webSocketProtocol = "wss://"
109109
}
110110

111-
let client = new WebSocket(webSocketProtocol + hostname + pathname,"javametrics-dash")
111+
let client = new WebSocket(webSocketProtocol + hostname + pathname + "javametrics-socket")
112112

113113
client.onmessage = function(message) {
114114
received = JSON.parse(message.data);

0 commit comments

Comments
 (0)