ensure a peer connection is established before sending a message