getIncomingStanzaHandlers method

  1. @override
List<StanzaHandler> getIncomingStanzaHandlers()
override

Return the StanzaHandlers associated with this manager that deal with stanzas we receive. The higher the value of the handler's priority, the earlier it is run.

Implementation

@override
List<StanzaHandler> getIncomingStanzaHandlers() => [
      StanzaHandler(
        stanzaTag: 'iq',
        tagName: 'unblock',
        tagXmlns: blockingXmlns,
        callback: _unblockPush,
      ),
      StanzaHandler(
        stanzaTag: 'iq',
        tagName: 'block',
        tagXmlns: blockingXmlns,
        callback: _blockPush,
      ),
    ];