1、修改https下websocket建立失败的问题
This commit is contained in:
parent
54813dd0d4
commit
0bd5a0e507
@ -125,9 +125,7 @@
|
||||
|
||||
//建立webSocket连接
|
||||
var webSocktPath;
|
||||
if(basePath.indexOf("https") != -1)
|
||||
webSocktPath = (basePath+"/websocket").replace("https","ws");
|
||||
else webSocktPath = (basePath+"/websocket").replace("http","ws");
|
||||
webSocktPath = (basePath+"/websocket").replace("http","ws");
|
||||
var websocket = new WebSocket(webSocktPath);
|
||||
|
||||
//打开webSokcet连接时,回调该函数
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user