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
| Parameter | Type |
|---|---|
node | P2PNode |
port | MessagePortLike |
Returns
() => void