socket_protobuf
English:
Under the nodejs running environment, this SDK is used for socket sends the protobuf binary stream.
The open source code has an example, you can download the code to see how to use.
author email:597785841@qq.com
example:
socket server backend:
Server.ts
const server1:ServerListener = new ServerListener( 4001 );
server1.startServer( onConnectClient, onDisconnectClient );
socket server backend Handler example, LoginHandler.ts :
export class LoginHandler extends Handler
socket client frontend:
UserClient.ts
const userClient:Client = new Client({
ip:"127.0.0.1",
port:4001,
time:3
} );
userClient.startConnect( onServerInfo, null, onConnected );
socket client frontend Handler example, LoginSuccessHandler.ts :
export class LoginSuccessHandler extends Handler
中文:
在nodejs运行环境下,socket发送protobuf二进制流的SDK。
源码有例子,可以下载源码查看使用方法。
作者邮箱:597785841@qq.com
由于github源码无法访问,中国大陆源码地址如下:
https://e.coding.net/wujinhong/open_source/socket_protobuf.git