Function: usePeers()
usePeers<
PeerMetadata
,ServerMetadata
>():UsePeersResult
<PeerMetadata
,ServerMetadata
>
Type Parameters
Type Parameter | Default type | Description |
---|---|---|
PeerMetadata | Record <string , unknown > | Type of metadata set by peer while connecting to a room. |
ServerMetadata | Record <string , unknown > | Type of metadata set by the server while creating a peer. |
Returns
UsePeersResult
<PeerMetadata
, ServerMetadata
>