Module PocketMeshPeer.PeersStatuses
Stores online statuses of all friends.
type t
;type peerStatus
=
;|
Online
Peer is connected to signal server.
|
Offline
Peer is NOT connected to signal server.
let getPeerStatus: Peer.Id.t => t => peerStatus;
getPeerStatus(p, t)
returns online status for your friend with IDp
. If the peer is not your friend,Offline
is returned.