Home > @rainway/native > RainwayConnection > connect
RainwayConnection.connect() method
Connect to another peer on the Rainway Network.
Signature:
connect(options: PeerConnectOptions): Promise<Peer>;
Parameters
Parameter | Type | Description |
---|---|---|
options | PeerConnectOptions | connection options |
Returns:
Promise<Peer>
- connection object