graft.server module

class graft.server.Server(peer_id)[source]

Bases: graft.state.BaseController

send(target_peer, message)[source]

Send a message to a target peer.

Raises

TargetIsSenderError – If target_peer is self.peer_id

async start()[source]

Start the server

peer_id
peers