Commit b6ef6192 by lyhuang

change js url

parent 7eb3dc11
Showing with 1 additions and 2 deletions
......@@ -2,8 +2,7 @@
var webSocket = null;
function connectSocket(sipPhoneName){
// var url = "ws://192.168.10.5:8080/websocket/";
var url = "ws://localhost:8080/websocket/";
var url = "ws://"+window.location.host+"/websocket/";
url +=sipPhoneName;
if(webSocket==null){
webSocket=new WebSocket(url);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment