0.0.7 • Published 11 years ago

plex v0.0.7

Weekly downloads
34
License
-
Repository
github
Last release
11 years ago

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'
0.0.7

11 years ago

0.0.6

11 years ago

0.0.5

11 years ago

0.0.4

11 years ago

0.0.3

11 years ago

0.0.2

11 years ago

0.0.1

11 years ago

0.0.0

11 years ago