【文件属性】:
文件名称:pomelo-node-tcp-client:Pomelo框架的Node.js TCP客户端
文件大小:13KB
文件格式:ZIP
更新时间:2021-05-12 16:06:13
JavaScript
pomelo-node-tcp-client
用于Pomelo框架的Node.js TCP客户端库。
指示
使用npm install pomelo-node-tcp-client
用法:
var Pomelo = require ( "pomelo-node-tcp-client" )
pomelo . init ( "127.0.0.1" , 3010 , { } , function ( ) {
console . log ( 'success' ) ;
pomelo . request ( "connector.entryHandler.entry" , { } , onEntry ) ;
} ) ;
function onEntry ( object ) {
console . log ( "got it: " + object ) ;
}
pomelo . n
【文件预览】:
pomelo-node-tcp-client-master
----index.js(44B)
----package.json(684B)
----readme.md(2KB)
----license(1KB)
----src()
--------package.js(1KB)
--------message.js(3KB)
--------pomelo.js(5KB)
--------request.js(189B)
--------libs()
----.gitignore(147B)