counterparty

abstract val counterparty: Party

If the destination on the other side of this session is a Party then returns that, otherwise throws IllegalStateException.

Only use this method if it's known the other side is a Party, otherwise use destination.

See also

Throws

if the other side is not a Party.