1.1.3 • Published 5 years ago

ilp-plugin-multiplex v1.1.3

Weekly downloads
-
License
ISC
Repository
-
Last release
5 years ago

ILP Plugin Multiplex

Create multiple children of an ILP plugin in the same process

Example

const PluginMultiplex = require('ilp-plugin-multiplex')

// Create a parent
// (typically this is done as part of a connector config)
const plugin = new PluginMultiplex({})

// Create a child
const childPlugin1 = plugin.getChild()

// Create a child with custom id
// (this id is an address segment)
const childPlugin2 = plugin.getChild({ id: 'abcdef' })

Why?

The same use case as mini-accounts, but sometimes you want to do it within a single process. Mini accounts binds to a port which can be undesirable in some situations, esp. in a browser where that's not possible.

1.1.3

5 years ago

1.1.2

5 years ago

1.1.1

5 years ago

1.1.0

5 years ago

1.0.0

5 years ago