Creates a new Node.
-
serialize
functionBy default isJSON.stringify -
deserialize
functionBy default isJSON.parse -
max_remote_functions
numberBy default is Infinity. It limits the amount of functions that can be created from the other side.
A new Node instance.
import { createNode } from 'dop'
const node = createNode({
serialize: JSON.stringify,
deserialize: JSON.parse,
max_remote_functions: Infinity
})