Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

socket_protobuf

Package Overview
Dependencies
Maintainers
1
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

socket_protobuf - npm Package Compare versions

Comparing version 1.3.8 to 1.3.9

2

package.json
{
"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
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc