eshttp icon indicating copy to clipboard operation
eshttp copied to clipboard

Integration Guide?

Open billiegoose opened this issue 8 years ago • 1 comments

I'm thinking about making a backend for this module for my dukboot runtime. I didn't see any instructions on how to actually write backends though. Do I use eshttp as a dependency and write a wrapper module?

billiegoose avatar Jun 22 '17 21:06 billiegoose

Yep, that should work. See example of the runtime.js backend https://github.com/iefserge/eshttp/blob/master/index-runtime.js It calls setBackend to provide backend object, then re-exports eshttp.

Backend itself is a set of functions for working with sockets on the platform https://github.com/iefserge/eshttp/blob/master/backend/backend-runtime.js

Feel free to open an issue about backend API improvements if it makes sense.

iefserge avatar Jun 23 '17 09:06 iefserge