status-go/signal/events_wakuv2.go

15 lines
362 B
Go
Raw Permalink Normal View History

package signal
import "github.com/status-im/status-go/waku/types"
2023-07-05 16:56:34 +01:00
const (
// EventPeerStats is sent when peer is added or removed.
// it will be a map with capability=peer count k/v's.
EventPeerStats = "wakuv2.peerstats"
)
// SendPeerStats sends discovery.summary signal.
2023-07-05 16:56:34 +01:00
func SendPeerStats(peerStats types.ConnStatus) {
send(EventPeerStats, peerStats)
}