socket_protobuf
Advanced tools
Comparing version 1.3.8 to 1.3.9
{ | ||
"name": "socket_protobuf", | ||
"version": "1.3.8", | ||
"version": "1.3.9", | ||
"description": "socket发送protobuf二进制流的SDK", | ||
@@ -5,0 +5,0 @@ "main": "App.js", |
@@ -1,4 +0,5 @@ | ||
socket_protobuf | ||
socket_protobuf. | ||
Described in English. | ||
有中文注释说明. | ||
### English: | ||
@@ -42,2 +43,26 @@ Under the nodejs running environment, this SDK is used for socket sends the protobuf binary stream. | ||
#### 例子: | ||
##### socket 服务器后端: | ||
Server.ts | ||
const server1:ServerListener = new ServerListener( 4001 ); | ||
server1.startServer( onConnectClient, onDisconnectClient ); | ||
socket 服务器后端 Handler 例子, LoginHandler.ts : | ||
export class LoginHandler extends Handler | ||
##### socket 客户端前端: | ||
UserClient.ts | ||
const userClient:Client = new Client({ | ||
ip:"127.0.0.1", | ||
port:4001, | ||
time:3 | ||
} ); | ||
userClient.startConnect( onServerInfo, null, onConnected ); | ||
socket 客户端前端 Handler 例子, LoginSuccessHandler.ts : | ||
export class LoginSuccessHandler extends Handler |
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
48377
68