Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
n-tier proxy tree for nodejs
CoffeeScript
Branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
docs
example
lib
spec
src
.gitignore
CHANGELOG.md
Cakefile
README.md
TODO.md
package.json

README.md

plex

n-tier proxy tree for nodejs

0.0.7 - high alpha - api changes/deprecations without warning.

Install

npm install plex --save

Usage (basic)

require('plex').start

    #
    # with this opts hash/literal
    #

    secret: 'SEEKRIT'

    connect:

        #
        # establish connection to parent proxy
        #

        adaptor: 'socket.io'
        uri: 'https://rootward.proxy:10001'

    listen:

        #
        # listen for children
        #

        adaptor: 'socket.io'

        port: 10002  
        # OR server: myHttpsServer


    #
    # define protocol
    #

    protocol: (subscribe, publish) -> 

        subscribe 'event:name', (payload) -> 

            publish 'event:name:ack', 'thank you :)'

Usage (advanced)

plex = require 'plex'

class MyNode extends plex.Node

    constructor: (args)

        #
        # constructor should assemble
        # the necessary @opts hash/literal
        #


context = plex.start new MyNode my: 'args'

Something went wrong with that request. Please try again.