Home > rainway-sdk > RainwayConfig > onConnectionRequest
RainwayConfig.onConnectionRequest property
Called when a remote peer wishes to connect to this peer.
Use RainwayConnectionRequest.accept
or RainwayConnectionRequest.reject
to process the request.
Signature:
onConnectionRequest?: (runtime: RainwayRuntime, request: RainwayConnectionRequest) => void;