node-services:用于客户端服务的 Node.js 模块

时间:2021-07-22 18:24:34
【文件属性】:
文件名称:node-services:用于客户端服务的 Node.js 模块
文件大小:8KB
文件格式:ZIP
更新时间:2021-07-22 18:24:34
JavaScript 节点服务 用于客户端/工作器服务的 Node.js 模块 要求 ØMQ(开发) sudo apt-get install libzmq3-dev 安装 sudo npm install node-services 使用示例 工人: // worker var services = require ( 'node-services' ) , worker = services . createWorker ( { name : "Square root" , host : "127.0.0.1" , port : 5433 , workers : 2 } ) ; worker . pre ( function ( ) { // load bulky modules here or do heavy initialization work console .
【文件预览】:
node-services-master
----.gitignore(526B)
----package.json(520B)
----LICENSE(1KB)
----index.js(3KB)
----examples()
--------simple_example()
--------language_detection()
----README.md(2KB)

网友评论