HomeGuidesAPI Reference
HubBlogChangelogSupport ForumLog In
API Reference

Node.js SDK - PeerRequestEvent.(constructor)

Home > @rainway/native > PeerRequestEvent > (constructor)

PeerRequestEvent.(constructor)

Constructs a new instance of the PeerRequestEvent class

Signature:

constructor(owner: RainwayConnection, input: RainwayIncomingConnectionRequestType, onAccepted?: (peer: Peer) => void, onRejected?: (reason?: string) => void);

Parameters

ParameterTypeDescription
ownerRainwayConnection
inputRainwayIncomingConnectionRequestType
onAccepted(peer: Peer) => void
onRejected(reason?: string) => void