Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/m3talsmith/porter
- Owner: m3talsmith
- License: mit
- Created: 2015-12-03T20:39:58.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2015-12-28T21:48:52.000Z (about 9 years ago)
- Last Synced: 2024-04-14T15:07:35.365Z (10 months ago)
- Language: JavaScript
- Size: 157 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.