New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

plex

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

plex

n-tier proxy tree (alpha)

latest
npmnpm
Version
0.0.7
Version published
Maintainers
1
Created
Source

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'


Keywords

proxy

FAQs

Package last updated on 27 Mar 2013

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts