serverRelayTransport

fun serverRelayTransport(inner: RaftTransport, relayChannel: Seam, core: Set<NodeId>, scope: CoroutineScope, attachment: (NodeId) -> NodeId?): RoutedRaftTransport

Build a RoutedRaftTransport for a core server: it may take one core hop to reach a player behind another server, choosing that hop from attachment.

Parameters

inner

the server's direct transport (its peers are the local players and the other core servers it is wired to).

relayChannel

the seam relay envelopes ride, reaching the local players and the core; the transport owns its incoming.

core

the fully-meshed core's node ids — the first-hop trust boundary.

scope

parents the relay coroutine. Required.

attachment

the live (player) -> the server it is behind lookup.