Skip to content
pdxwebdev edited this page Jul 8, 2012 · 6 revisions

When we say "requesting friends" what we really mean is creating a relationship between wherever you are running this script from and wherever you ran the server from in the previous step.

In this case, you'll be making friends with yourself, but in practice, you would be requesting relationships with others.

from yadapy.sqlite.nodesqlite import Node
from yadapy.nodecommunicator import NodeCommunicator
node1 = Node({}, {"name" : "my new node"}, location="/my.db")
nc1 = NodeCommunicator(node1)

send the request to the host and port of the node


nc1.requestFriend("host:port")

Done! Now start sending messages >

Clone this wiki locally