socket_protobuf
Advanced tools
Comparing version 1.1.9 to 1.2.0
@@ -65,18 +65,18 @@ "use strict"; | ||
onClose() { | ||
this.disconnected(); | ||
this.lineLogErr("服务器---连接-对方关闭"); | ||
this.clearSocket(); | ||
this.startTimeOut(); | ||
this.disconnected(); | ||
} | ||
onEnd() { | ||
this.disconnected(); | ||
this.lineLogErr("服务器---连接-对方结束"); | ||
this.clearSocket(); | ||
this.startTimeOut(); | ||
this.disconnected(); | ||
} | ||
onError() { | ||
this.disconnected(); | ||
this.lineLogErr(this.lineInfo + " Sever服务器---连接错误"); | ||
this.clearSocket(); | ||
this.startTimeOut(); | ||
this.disconnected(); | ||
} | ||
@@ -83,0 +83,0 @@ startConnect(onServerInfo, clientInfo = null, onConnected = null, onDisconnected = null) { |
{ | ||
"name": "socket_protobuf", | ||
"version": "1.1.9", | ||
"version": "1.2.0", | ||
"description": "socket发送protobuf二进制流的SDK", | ||
@@ -5,0 +5,0 @@ "main": "App.js", |