node-jsonrpc2 icon indicating copy to clipboard operation
node-jsonrpc2 copied to clipboard

Promise Support for Server and Client Methods

Open colceagus opened this issue 9 years ago • 1 comments

The client and server methods should support promises. I hit this while I was writing the tests for the Cookie and JWT Authorization Feature. Calling a method on the server should be able to return a promise.

I'd be happy to promisify the client and server code.

What is your opinion on this feature?

colceagus avatar Sep 30 '16 19:09 colceagus

I'm all in for promise support. The time this module was written callback was the norm ;)

pocesar avatar Sep 30 '16 23:09 pocesar