Type alias ConnectionRequestHandler

ConnectionRequestHandler: ((connectionRequest) => Promise<ConnectionRequestAuthorization>)

A handler for connection requests from other peers.

Set a ConnectionRequestHandler on ditto.presence.connectionRequestHandler to allow or deny connection requests from other peers.

Type declaration

Returns

allow if the request should be authorized, deny otherwise.

See

ditto.presence.connectionRequestHandler for details on the connection request API.