close method

void close()

Removes all the states of the remote peer and clears memory; NOTE: You need to close consumers using the recvTransport.closeConsumer of the local peer

Implementation

void close() {
  logger.i("Closing Remote Peer");
  removeAllListeners();
}