Node.js SDK - PeerRequestEvent

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

ConstructorModifiersDescription
(constructor)(owner, input, onAccepted, onRejected)Constructs a new instance of the PeerRequestEvent class

Properties

PropertyModifiersTypeDescription
externalIdstringThe ExternalId of the peer requesting the connection.
idBigIntThe ID of the peer requesting the connection.

Methods