浏览代码

躲避wss校验

wuyongxiang 4 年之前
父节点
当前提交
1a68faf613
共有 1 个文件被更改,包括 1 次插入1 次删除
  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';