MCPcopy Create free account
hub / github.com/MiloOweno/kernel-lab / wsStreamHandlerV1

Method wsStreamHandlerV1

network/p2pNetwork.go:836–858  ·  view source on GitHub ↗

wsStreamHandler is a callback that the p2p package calls when a new peer connects and establishes a stream for the websocket protocol. TODO: remove after consensus v41 takes effect.

(ctx context.Context, p2pPeer peer.ID, stream network.Stream, incoming bool)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 5

baseWsStreamHandlerMethod · 0.95
WarnfMethod · 0.65
ReadMethod · 0.65
StringMethod · 0.65
WriteMethod · 0.65

Tested by

no test coverage detected