Chuyển tới nội dung chính

Realtime Transport

fluvius.transport provides service transport, realtime bridges, transport envelopes, permissions, and JSON/CBOR codecs.

from fluvius.transport import configure_rtc_bridge, configure_svc_transport

app = (
app
| configure_svc_transport()
| configure_rtc_bridge()
)

Use ServiceTransport for service messaging and RTCBridge / RTCBridgeClient for realtime clients. Wire payloads use MessageEnvelope, TransportMessage, and ClientMessage; TransportCodec selects the configured encoding.

Configure the shared bus with FLUVIUS_BUS_URL or a transport-specific URL. WebSocket tickets and authentication timeouts are short-lived security boundaries; do not disable the permission checks around channels or client messages.