# onXmppEvent method

1. @override

Future <void> onXmppEvent(

1. XmppEvent event

)
override

Called when XmppConnection triggers an event

## Implementation

    @override
    Future<void> onXmppEvent(XmppEvent event) async {
      if (event is StreamNegotiationsDoneEvent) {
        // Clear the JID to cap. hash mapping.
        await _cacheLock.synchronized(_jidToCapHashCache.clear);
      }
    }