Sdk class

Main entry point for tlfs.

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addAddress(String peerId, String addr) → void
Adds a new multiaddr for a peer id.
addDoc(String docId, String schema) Doc
Adds a document with a schema.
addresses() Future<Iter<String>>
Returns the list of multiaddr the sdk is listening on.
connectedPeers() Future<Iter<String>>
Returns the list of connected peers.
createDoc(String schema) Future<Doc>
Creates a new document with an initial schema.
docs(String schema) Iter<String>
Returns an iterator of doc id's.
drop() → void
Manually drops the object and unregisters the FinalizableHandle.
getPeerid() String
Returns the peer id of this sdk.
invites() Future<Iter<List>>
Clears the pending invitations.
localPeers() Future<Iter<String>>
Returns the local peers discovered via mdns.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
openDoc(String docId) Doc
Returns a document handle.
removeAddress(String peerId, String addr) → void
Removes a multiaddr of a peer id.
removeDoc(String docId) → void
Removes a document.
subscribeAddresses() Stream<int>
Subscribes to listening address changes.
subscribeConnectedPeers() Stream<int>
Subscribes to connected peer changes.
subscribeDocs() Stream<int>
Subscribes to document changes.
subscribeInvites() Stream<int>
Subscribes to invitation notifications.
subscribeLocalPeers() Stream<int>
Subscribes to local peer changes.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited