Explorar o código

新增websocket链接

wuyongxiang %!s(int64=4) %!d(string=hai) anos
pai
achega
987b0237d4
Modificáronse 1 ficheiros con 6 adicións e 4 borrados
  1. 6 4
      screenH5/homeNew.html

+ 6 - 4
screenH5/homeNew.html

@@ -459,6 +459,7 @@
 							// debugger
 							client.onopen = function(evt) {
 								// onOpen(evt) 
+								console.log("开始链接==============", evt);
 							};
 							client.onclose = function(evt) {
 								// onClose(evt) 
@@ -473,7 +474,7 @@
 							client.onerror = function(evt) {
 								// onError(evt) 
 							};
-						}, 500)
+						}, 5)
 
 					},
 					swiperPrev() {
@@ -529,7 +530,7 @@
 							client.binaryType = 'arraybuffer';
 							// debugger
 							client.onopen = function(evt) {
-								// onOpen(evt) 
+								console.log("开始链接==============", evt);
 							};
 							client.onclose = function(evt) {
 								// onClose(evt) 
@@ -544,7 +545,7 @@
 							client.onerror = function(evt) {
 								// onError(evt) 
 							};
-						}, 500)
+						}, 5)
 
 					},
 					gethomeList() {
@@ -684,6 +685,7 @@
 										// debugger
 										client.onopen = function(evt) {
 											// onOpen(evt) 
+											console.log("开始链接==============", evt);
 										};
 										client.onclose = function(evt) {
 											// onClose(evt) 
@@ -698,7 +700,7 @@
 										client.onerror = function(evt) {
 											// onError(evt) 
 										};
-									}, 500)
+									}, 5)
 
 
 								} else {