public function onMessage(Mf4phpMessage $message) : void
    {
        Preconditions::checkArgument($message instanceof ObjectMessage, "Message must be an instance of ObjectMessage");
        $object = $message->getObject();
        if ($object instanceof MessageWrapper) {
            $object = $object->getMessage();
        }
        parent::dispatch($object, self::emptyCallback());
    }
public function onMessage(Mf4phpMessage $message) : void
    {
        Preconditions::checkArgument($message instanceof ObjectMessage, "Message must be an instance of ObjectMessage");
        $object = $message->getObject();
        if ($object instanceof MessageWrapper) {
            $object = $object->getMessage();
        }
        parent::dispatch($object, self::emptyCallback());
    }
public function onMessage ( Mf4phpMessage $ message ) : void { Preconditions :: checkArgument ( $ message instanceof ObjectMessage , "Message must be an instance of ObjectMessage" ) ; $ object = $ message -> getObject ( ) ; if ( $ object instanceof MessageWrapper ) { $ object = $ object -> getMessage ( ) ; } parent :: dispatch ( $ object , self :: emptyCallback ( ) ) ; }
Forward incoming message to handlers.

@param Mf4phpMessage $message
@throws InvalidArgumentException
Forward incoming message to handlers .