MCPcopy Create free account
hub / github.com/MetaMask/torus-node / sendP2PMessage

Method sendP2PMessage

dkgnode/p2p.go:459–487  ·  view source on GitHub ↗

helper method - writes a p2pMessage go data object to a network stream s: network stream to write the data to

(ctx context.Context, id peer.ID, p protocol.ID, msg P2PMessage)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

CallMethod · 0.95

Calls 2

WriteMethod · 0.65
ErrorMethod · 0.45

Tested by

no test coverage detected