Function: useUpdatePeerMetadata()
useUpdatePeerMetadata<
PeerMetadata
>():object
This hook provides method to update peer metadata
Type Parameters
Type Parameter | Default type |
---|---|
PeerMetadata extends GenericMetadata | GenericMetadata |
Returns
object
updatePeerMetadata()
updatePeerMetadata: (
peerMetadata
) =>Promise
<void
>
Updates metadata send to other peers
Parameters
Parameter | Type | Description |
---|---|---|
peerMetadata | PeerMetadata | string 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