Function to derive a grouping key from a peer state. This can be used to
group peers and consider presence activity by an arbitrary attribute of the
presence state (e.g., user or device) rather than by peer.
This is useful when a user has multiple devices, or multiple peers (e.g.,
tabs) on a single device.
Function to derive a grouping key from a peer state. This can be used to group peers and consider presence activity by an arbitrary attribute of the presence state (e.g., user or device) rather than by peer.
This is useful when a user has multiple devices, or multiple peers (e.g., tabs) on a single device.