Closed mcollina closed 10 years ago
I'm thinking about using patrun as the matching engine of a pub/sub system, just like event emitter, similar to mqemitter. I would like to see this code work:
var patrun = require('patrun') , pm = patrun() pm.add({ the: 'heading' }, function a() { console.log('a', arguments) }) pm.add({ the: 'heading' }, function b() { console.log('b', arguments) }) pm.findall({ the: 'heading', a: 'message' })[0].data('it works!')
I'm not sure how to add this functionality to patrun, some feedback is highly needed :).
Funny you should mention that...
0.2.0 just out - take a look at the README!
:dancers: thanks!
Here is my night coding effort: https://github.com/mcollina/patrun-emitter :)
I'm thinking about using patrun as the matching engine of a pub/sub system, just like event emitter, similar to mqemitter. I would like to see this code work:
I'm not sure how to add this functionality to patrun, some feedback is highly needed :).