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
| Parameter | Type | Description |
|---|---|---|
| owner | RainwayConnection | |
| input | RainwayIncomingConnectionRequestType | |
| onAccepted | (peer: Peer) => void | |
| onRejected | (reason?: string) => void |
