Home > @rainway/web > RainwayConnection > connect
Connect to another peer on the Rainway Network.
connect(peerId: PeerId): Promise<Peer>;
- A promise that resolves once the peer-to-peer connection is established, or errors if the connection attempt is canceled, rejected, failed, etc. The RainwayPeer object is ready to use.