connect

abstract fun connect(connectionRequest: DittoConnectionRequest): DittoConnectionRequestAuthorization

Called when a connection request is received from another peer.

Return

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

Since

4.8.0

Parameters

connectionRequest

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