Skip to main content

Function: useUpdatePeerMetadata()

useUpdatePeerMetadata<PeerMetadata>(): object

This hook provides method to update peer metadata

Type Parameters

Type ParameterDefault type
PeerMetadata extends GenericMetadataGenericMetadata

Returns

object

updatePeerMetadata()

updatePeerMetadata: (peerMetadata) => Promise<void>

Updates metadata send to other peers

Parameters

ParameterTypeDescription
peerMetadataPeerMetadatastring indexed record with metadata, that will be available to all other peers

Returns

Promise<void>

Defined in

packages/react-native-client/src/hooks/useUpdatePeerMetadata.ts:10