Networking Libraries
Networking libraries for distributed communication patterns using the scriptling.net namespace.
Libraries
| Library | Description |
|---|---|
| scriptling.net.gossip | Gossip protocol cluster membership and messaging |
| scriptling.net.multicast | UDP multicast group messaging |
| scriptling.net.resolve | DNS resolution for IP, SRV, and srv+http URLs |
| scriptling.net.unicast | UDP and TCP point-to-point messaging |
| scriptling.net.websocket | WebSocket client for connecting to WebSocket servers |
Quick Start
import scriptling.net.websocket as ws
# Connect to a WebSocket server
conn = ws.connect("wss://echo.websocket.org", timeout=5)
# Send and receive a message
conn.send("hello")
message = conn.receive()
print(message)
conn.close()See Also
- scriptling.runtime - HTTP and JSON-RPC server libraries
- scriptling.ai - AI agents that can drive networked tools
- Libraries - Full library reference index
- Security Guide - Network-enabled libraries risk breakdown