node-mole-rpc icon indicating copy to clipboard operation
node-mole-rpc copied to clipboard

http2

Open shanejonas opened this issue 6 years ago • 5 comments

any plans to support http2 as a transport?

shanejonas avatar Feb 20 '19 03:02 shanejonas

Hi, we are going to implement transport that will allow mount Mole RPC Server to express.js endpoint (as middleware). In this case, you can run express on top of http2

koorchik avatar Feb 20 '19 10:02 koorchik

any solution for the client?

shanejonas avatar Feb 20 '19 15:02 shanejonas

client transport will be built on top of "fetch" (isomorphic-fetch). So, in browser it will support http2 but in nodejs, I am not sure that node-fetch uses http2.

In case it is rather easy to add extra client transport built on top of node "http2" module

koorchik avatar Feb 20 '19 16:02 koorchik

Awesome. Thanks, wasn't aware browser fetch needed no changes for http2.

shanejonas avatar Feb 20 '19 18:02 shanejonas

was looking at mole rpc love the different transports provided and the examples provided with the transports look pretty simple and nice compared to some of the other json rpc libraries I looked at

but I don't see an http transport listed here: https://www.npmjs.com/search?q=keywords:mole-transport

did the express.js transport mentioned above never get implemented?

darrencruse avatar Jan 28 '23 16:01 darrencruse