remotePeerExists method

RemotePeer? remotePeerExists(
  1. String peerId
)

Returns the Remote Peer with the given peerId is present in the room. Returns null if the peer is not present in the room. @param peerId - PeerId of the remote peer @returns - RemotePeer Instance

Implementation

RemotePeer? remotePeerExists(String peerId) {
  RemotePeer? peer = remotePeers[peerId];
  return peer;
}