Skip to content

MicroMinion/mm-services-events

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mm-services-events

Event dispatching service for MicroMinion platform

Initialization

var MicroMinionPlatform = require('mm-platform')
var Events = require('mm-services-events')

var platform = new MicroMinionPlatform()

var events = new Events({
platform: platform,
logger: platform._log
)}

Messaging API

Published messages

This service can republish any message that is published on local bus to a remote host given that this remote host has send subscribe message.

Subscribed messages

Subscribe messages subscribe remote hosts to events published on local bus. Subscriptions expire after 5 minutes.

platform.messaging.send('events.subscribe', remoteHostKey, {topic: topicName})

About

Event dispatching service for MicroMinion platform

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published