Home > @rainway/native > PeerRequestEvent
PeerRequestEvent class
An event that occurs when a remote peer requests to connect.
Signature:
export declare class PeerRequestEvent extends BaseRequestEvent<PeerOptions, Peer>
Extends: BaseRequestEvent<PeerOptions, Peer>
Constructors
| Constructor | Modifiers | Description |
|---|---|---|
| (constructor)(owner, input, onAccepted, onRejected) | Constructs a new instance of the PeerRequestEvent class |
Properties
| Property | Modifiers | Type | Description |
|---|---|---|---|
| externalId | string | The ExternalId of the peer requesting the connection. | |
| id | BigInt | The ID of the peer requesting the connection. |
Methods
| Method | Modifiers | Description |
|---|---|---|
| acceptInternal(options) | ||
| rejectInternal(reason) |
