-
pomelo-node-tcp-client:Pomelo框架的Node.js TCP客户端下载
资源介绍
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