From ffc7352e4ddd72db2223460ca7a45c20f6838bb0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lucas=20Ple=C3=9F?= Date: Sun, 26 Feb 2012 01:52:24 +0100 Subject: [PATCH] eben noch fix den websocket host und port dynamisch gemacht --- bunti_server/src/main/webapp/index.jsp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/bunti_server/src/main/webapp/index.jsp b/bunti_server/src/main/webapp/index.jsp index 4ab3dd7..0af636a 100644 --- a/bunti_server/src/main/webapp/index.jsp +++ b/bunti_server/src/main/webapp/index.jsp @@ -21,8 +21,7 @@ $(document).ready( function() { var Socket = "MozWebSocket" in window ? MozWebSocket : WebSocket; - ws = new MozWebSocket("ws://localhost:8080/bunti_server/bunti"); - //ws = new MozWebSocket("ws://localhost:8080/grizzly-websockets-chat/chat"); + ws = new Socket("ws://" + window.location.hostname + ":" + window.location.port + "/bunti_server/bunti"); ws.onmessage = function (message) { //$("#messages").append("

" + message.data + "

");