DittoConnectionRequestHandler

A handler for connection requests from other peers.

Set a DittoConnectionRequestHandler on Presence.connectionRequestHandler to allow or deny connection requests from other peers.

Return

DittoConnectionRequestAuthorization.Allow if the request should be authorized; DittoConnectionRequestAuthorization.Deny otherwise.

Since

4.7.0

Parameters

connectionRequest

Contains information about the remote peer that can be used to make an authorization decision.