GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Guides
  • API
  • Examples
  • Protocol
  • Github

This view

  • Original page
  • New address

GeezerVison is showing distributedobjectprotocol.org — Distributed Object Protocol

API
JavaScript
  • createNode
  • createStore
  • applyPatch
  • encode
  • decode
  • addType
  • merge
  • factory
  • <Node>
  • open
  • message
  • <Store>
  • subscribe
  • unsubscribe
  • applyPatch
  • TYPE
  • Delete
  • Replace
  • Splice
  • Swap
  • Multi
Api / JavaScript /

createNode( [options] )

Creates a new Node.

Arguments

[options] Object

  • serialize function By default is JSON.stringify

  • deserialize function By default is JSON.parse

  • rpcFilter function Can be used to block or manipulate the rpc that is going to be created.

Returns Object

A new Node instance.

Example

import { createNode } from 'dop'

const node = createNode({ 
    serialize: JSON.stringify,
    deserialize: JSON.parse,
    rpcFilter: ({ rpc }) => rpc,
})
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.