piermesh/docs/Splash/serve.md

1.0 KiB

serve: Web UI server

class Splash.serve.Server(transceiver, catch, onodeID, network, cLog)

Web server that serves the web ui and provides web to node communication

🔗 Source

cLog

Reference to run.Node.cLog for logging

transmitter

Reference to our Transmission.transmission.Transmitter instance

  • Type: Transmission.transmission.Transmitter

network

Reference to our Siph.Network.Network

  • Type: Siph.Network.Network

nodeID

String converted PierMesh node ID

  • Type: str

peerIDs

Map of peer IDs to Websocket sessions

  • Type: dict

app

Microdot server instance

catch

Reference to our Catch Cache instance to pull from for serving Catchs

async sendToPeer(peerID: str, data: str)

Send data to Websocket of peer with peerID