These functions implement the same protocol as used by other Stencila executors (e.g. Executa and Pyla) for sending messages using streams (e.g. standard input / output, TCP streams). Essentially it implements the functionality in the Node.js package length-prefixed-stream.

Details