1.4.0 • Published 3 years ago

socket_protobuf v1.4.0

Weekly downloads
3
License
MIT
Repository
github
Last release
3 years ago

Described in English.

有中文注释说明.

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

例子:

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
1.3.7

3 years ago

1.3.6

3 years ago

1.3.5

3 years ago

1.4.0

3 years ago

1.3.9

3 years ago

1.3.8

3 years ago

1.3.4

3 years ago

1.3.3

3 years ago

1.3.2

3 years ago

1.3.1

3 years ago

1.3.0

3 years ago

1.2.9

3 years ago

1.2.8

4 years ago

1.2.7

4 years ago

1.2.6

4 years ago

1.2.5

4 years ago

1.2.4

4 years ago

1.2.3

4 years ago

1.2.2

4 years ago

1.2.1

4 years ago

1.2.0

4 years ago

1.1.9

4 years ago

1.1.8

4 years ago

1.1.7

4 years ago

1.1.6

4 years ago

1.1.5

5 years ago

1.1.4

5 years ago

1.1.3

5 years ago

1.1.2

5 years ago

1.1.1

5 years ago

1.1.0

5 years ago

1.0.9

5 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago