HomeGuidesAPI Reference
HubBlogChangelogSupport ForumLog In
API Reference

Node.js SDK - RainwayConnection.connect()

Home > @rainway/native > RainwayConnection > connect

RainwayConnection.connect() method

Connect to another peer on the Rainway Network.

Signature:

connect(options: PeerConnectOptions): Promise<Peer>;

Parameters

ParameterTypeDescription
optionsPeerConnectOptionsconnection options

Returns:

Promise<Peer>

  • connection object