Skip to main content

Module transport

Module transport 

Source
Expand description

Federation transport: an Op and target server in, raw response bytes out.

The Transport seam isolates the network behind a trait the tests mock; FederationTransport is the production impl.

Structsยง

FederationTransport ๐Ÿ”’
Production transport backed by the federation request service.

Traitsยง

Transport ๐Ÿ”’
Abstracts the network operation for one federation fetch attempt.

Functionsยง

batch_limit ๐Ÿ”’
Event count requested per batch op, defaulting to the federation default of 10 and saturating an oversized cap to the wire UInt.
require_event_id ๐Ÿ”’
require_latest_events ๐Ÿ”’
require_room_id ๐Ÿ”’
require_ts ๐Ÿ”’
to_bytes ๐Ÿ”’