minca
ApiSessionFunctions

Function: joinGranted()

function joinGranted(
   node, 
   grant, 
   onError?
): Promise<void>;

Defined in: packages/core/src/session/connect.ts:687

Joins the spaces a grant names that the node doesn't hold yet: again, harmlessly, on later starts. A space that won't join throws, unless onError takes it and the rest are joined.

Parameters

ParameterType
nodeP2PNode
grantGrant
onError?(error) => void

Returns

Promise<void>

On this page