Skip to content

Latest commit

 

History

History
42 lines (30 loc) · 2.14 KB

File metadata and controls

42 lines (30 loc) · 2.14 KB

Summoner.server

The server layer runs the relay that connects clients. It accepts TCP connections, forwards messages (broadcast-style), and manages server lifecycle from a single entry point: SummonerServer.

Most users only touch this when they want to host a local relay or deploy a shared relay in an environment.

References

Pick the right page

You want to… Go to
Start a relay from Python and learn the callable methods server.server
Load configuration from JSON or a Python dict server.serverSummonerServer.run
Understand what each config key means and how to tune behavior configuration guide
Copy a complete example configuration file configuration guide → complete example

Quick start in one file

from summoner.server import SummonerServer

server = SummonerServer(name="summoner:server")
server.run(
    host="127.0.0.1",
    port=8888,
    config_path="server.json",   # or pass config_dict={...}
)

Tip

Start with config_dict while iterating locally, then move the exact same structure into a JSON file and use config_path for reproducible deployments.

« Previous: Summoner.client    |    Next: Summoner.protocol »