Home > @rainway/native > RainwaySDK
RainwaySDK class
The Rainway SDK
Signature:
export declare class RainwaySDK extends EventEmitter<RainwaySDKEvents>
Extends: EventEmitter<RainwaySDKEvents>
Remarks
The constructor for this class is marked as internal. Third-party code should not call the constructor directly or create subclasses that extend the RainwaySDK
class.
Properties
Property | Modifiers | Type | Description |
---|---|---|---|
isInitialized | boolean | Indicates if the native library has been initialized. | |
logLevel | RainwayLogLevel | Get or set the native library log level. | |
version | string | Get the native library version. A SemVer (https://semver.org/) string. |
Methods
Method | Modifiers | Description |
---|---|---|
connect(options) | 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. |