minca
ApiCoreFunctions

Function: serveNode()

function serveNode(node, port): () => void;

Defined in: packages/core/src/node/remote.ts:59

Answers for node over port, until the returned function is called. Stopping leaves the node running: closing it is its owner's to do, or the other side's, through close().

Parameters

ParameterType
nodeP2PNode
portMessagePortLike

Returns

() => void

On this page