MessageDispatcher

MessageDispatcher

Class represents MessageDispatcher

Constructor

new MessageDispatcher(actionAllocator)

Source:

creates new MessageDispatcher instance

Parameters:
Name Type Description
actionAllocator object

Methods

(private) _runObjectAllocator(allocator, data)

Source:

run against object allocator

Parameters:
Name Type Description
allocator object
data Message.data

filter(filterMethod) → {MessageDispatcher}

Source:

define general filter for this dispatcher

Parameters:
Name Type Description
filterMethod function
Returns:
Type
MessageDispatcher

onMessage(message)

Source:

handles and maps incoming messages

Parameters:
Name Type Description
message Message