var func = require('mu/drivers/func')
var createMu = require('mu')
var mu1 = createMu()
var mu2 = createMu()
mu1.inbound('*', func())
mu2.outbound('*', func({target: mu1})
I think this should be simpler, particularly for the browser case
var func = require('mu/drivers/func')
var mu = require('mu')()
mu.inbound('*', func())
mu.outbound('*', func({target: mu})) // currently causes max stack error on dispatch
or preferably, no need to specify target:
var func = require('mu/drivers/func')
var mu = require('mu')()
mu.inbound('*', func())
mu.outbound('*', func())
This allows for something like
var func = require('mu/drivers/func')
var http = require('mu/drivers/http')
var mu = require('mu')()
mu.inbound('*', http(opts))
mu.inbound({role: 'local-state'}, func())
mu.outbound({role: 'local-state'}, func())
currently for in-process we have to do
I think this should be simpler, particularly for the browser case
or preferably, no need to specify target:
This allows for something like