hprose-nodejs icon indicating copy to clipboard operation
hprose-nodejs copied to clipboard

Hprose is a cross-language RPC. This project is Hprose 2.0 for Node.js

Results 8 hprose-nodejs issues
Sort by recently updated
recently updated
newest added

客户端不能同步调用吗,想测试个性能都无从下手

首先感谢这么好的代码,开发分布式很好用。 但我在使用中有个疑问,推送消息的发布有 publish,但没有找到unpublish算法。 这样发布的资源没有办法回收,担心长时间会遇到问题。

When I try to remove a published topic via call server.remove(topic), an error raised: 'server.remove is not a function' , then I trace the source code and found the file...

假设使用hprose发送两个请求,第一个耗时较长,返回的第一个结果并不是客户端第一个请求的结果,这种情况下如何能保证请求与响应结果一一对应? 在 [全双工套接字(Socket)绑定](https://www.bookstack.cn/read/Hprose/bind.md#全双工套接字(Socket)绑定)这个文档中,客户端发送的数据有 4 个字节表示请求的唯一标识(id),但追到源码中好像数据并没有这个id头。 请问有什么解决方案么?谢谢

我的技术栈是React+Electron,在引入hprose后控制台报错误调用了`new Buffer()`这个已经废弃的api,建议改为`Buffer.alloc()`,请问这个问题如何解决? ```txt (node:9108) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead. ```

服务端的创建代码是: let hproseServer = require("hprose").Server.create('tcp://0.0.0.0:' + rpcPort.toString()); hproseServer.addFunction(WhenRPC, "WhenRPC"); hproseServer.start(); console.info("创建RPC Server", myName, rpcPort); 客户端的创建代码是: require("hprose").Client.create('tcp://127.0.0.1:' + rpcPort.toString(), ["WhenRPC"]) function WhenRPC (args, callback) { console.info("IN CallRPCAPI", args); //callback(null, "ReceiveSuccess"); callback("ReceiveSuccess");...

支持async/await方法式的写法吗?