socket_protobuf
Advanced tools
Comparing version 1.0.3 to 1.0.4
@@ -37,3 +37,3 @@ import { PServer } from "../Server"; | ||
private onError; | ||
startConnect(onServerInfo: (PServer: any) => void, clientInfo?: PServer): void; | ||
startConnect(onServerInfo: (server: PServer) => void, clientInfo?: PServer): void; | ||
private start; | ||
@@ -40,0 +40,0 @@ private doConnect; |
@@ -25,8 +25,8 @@ "use strict"; | ||
onConnected() { | ||
this.handlerMgr.getHandler(HandlerMgr_1.Cmd.ServerInfo).serverInfo = this; | ||
this._connect_stat = NetStatus.connected; | ||
this.clearTimeOut(); | ||
this._socket_client.sendTypeBuff(HandlerMgr_1.Cmd.ServerInfo, Server_1.PServer.encode(this.clientInfo).finish()); //发送获取数据要求 | ||
this.handlerMgr = new HandlerMgr_1.HandlerMgr(this._socket_client); | ||
this.handlerMgr.getHandler(HandlerMgr_1.Cmd.ServerInfo).serverInfo = this; | ||
this.lineLogInfo(this.lineInfo + "服务器---连接成功\n\n正在请求服务器数据...\n"); | ||
this._socket_client.sendTypeBuff(HandlerMgr_1.Cmd.ServerInfo, Server_1.PServer.encode(this.clientInfo).finish()); //发送获取数据要求 | ||
} | ||
@@ -33,0 +33,0 @@ async onMessage(pkg) { |
{ | ||
"name": "socket_protobuf", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"description": "socket发送protobuf二进制流的SDK", | ||
@@ -5,0 +5,0 @@ "main": "App.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
43680