Home > @rainway/native > RainwaySDK > connect
RainwaySDK.connect() method
Connects to the Rainway network, creating a RainwayConnection if successful. This is the first step required to connect to other Peers on the Rainway network, or to allow them to connect to you.
Signature:
connect(options: ConnectOptions): Promise<RainwayConnection>;
Parameters
Parameter | Type | Description |
---|---|---|
options | ConnectOptions | connection options |
Returns:
Promise<RainwayConnection>
A new connection