ProtectediProtected OptionalkeyProtected OptionallastProtectedloggerProtected OptionalmedallionReadonlypeersProtectedpromiseReadonlystoreStatic ReadonlyPROTOCOLAdds a listener that will be called every time a bundle is received with the BundleInfo (which contains chain information, timestamp, and bundle comment).
a callback to be invoked when a change occurs in the database or container
OptionalcontainerMuid: Muidthe Muid of a container to subscribe to. If left out, subscribe to all containers.
Initiates a websocket connection to a peer.
a websocket uri, e.g. "ws://127.0.0.1:8080/"
Optionaloptions: {a promise to the peer
ProtectedcreateProtectedreceive
This is an instance of the Gink database that can be run inside a web browser or via ts-node on a server. Because of the need to work within a browser it doesn't do any port listening (see SimpleServer for that capability).