PresenceStanza.withType constructor

PresenceStanza.withType(
  1. PresenceType type
)

Implementation

PresenceStanza.withType(PresenceType type) {
  name = 'presence';
  addAttribute(XmppAttribute('type', type.toString().split('.').last.toLowerCase()));
}