unsubscribe method

Future<void> unsubscribe(
  1. JID to
)

Sends an unsubscription request to to.

Implementation

Future<void> unsubscribe(JID to) async {
  await getAttributes().sendStanza(
    StanzaDetails(
      Stanza.presence(
        type: 'unsubscribe',
        to: to.toString(),
      ),
      awaitable: false,
    ),
  );
}