Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/m3talsmith/porter

An amazing tool for beating the Internet at its own game.
https://github.com/m3talsmith/porter

Last synced: about 2 months ago
JSON representation

An amazing tool for beating the Internet at its own game.

Awesome Lists containing this project

README

        

# Porter

Render HTML on the server and push it directly to a frontend element.

### Installation

Install with npm

```
npm install --save porter-client
```

Install with bower

```
bower install --save porter
```

### Usage

```html


It's Porter TIME!!!



..Main..




var connector = new WsConnector("ws://localhost:8080/websocket")
var hook = new Hook("main");
var porter = new Porter(connector);
porter.whitelist.add_rpc("hook.render", function(args) {
hook.render(args);
});

porter.connect();

```

### TODOS:

- [ ] Make connectors optional and named.
- [ ] Give connectors a `kind` array property.
- [ ] Abstract Consumer.
- [ ] Abstract Producer.