Class MessageBinding

A bridge between callback and context.


MessageBinding(owner, name, callback, isOnce, context, type, pathPattern) constructor

owner : MessageDispatcher — The owner of this binding.
name : string — Name of the message.
callback : function — Callback function.
isOnce : boolean — Indicates whenever this binding should be auto destroyed after first execution.
context : * — Optional context (usually this).
type : BindingType — Type of the binding.
pathPattern : string — Glob pattern to filter sender by name.
off() method
Destroys this binding.