skewten-incubator / pcb

Middleware-based API framework - It's Koa, but for APIs.
0 stars 0 forks source link

adapters #1

Open SEAPUNK opened 8 years ago

SEAPUNK commented 8 years ago

I'm thinking about the API for this library/framework, and I'm wondering how I'll be able to provide compatibility with things like HTTP and Websockets, and so forth.

Originally, I had in mind built-in adapters that you could attach to the libs (via middleware or something), but now I'm thinking that the adapters are their own standalone libraries, where you feed it the PCB instance, and it calls it like that.

I think it makes sense.

SEAPUNK commented 8 years ago

Here's an example adapter: https://github.com/seapunk/pcb-direct