toDomain method

JID toDomain()

Convert the JID into the JID of the domain. For example, converts alice@example.org/abc123 to example.org.

Implementation

JID toDomain() {
  return JID('', domain, '');
}