Browse Source

躲避wss校验

wuyongxiang 4 years ago
parent
commit
1a68faf613
1 changed files with 1 additions and 1 deletions
  1. 1 1
      screenH5/homeNew.html

+ 1 - 1
screenH5/homeNew.html

@@ -661,7 +661,7 @@
 										// 	"&port=" + that.urlData.exPort + "&sn=" + that.urlData.sn;
 										var strhost = "ws://192.168.11.66:9101";
 										// var strhost="ws://"+that.urlData.exIp+":"+that.urlData.exPort
-										var client = new WebSocket(strhost);
+										var client = new WebSocket(strhost.replace("ws","wss"));
 										console.log('wsssss==============', client)
 
 										client.binaryType = 'arraybuffer';