Skip to main content

Module extension

Module extension 

Source
Expand description

This module provide basic mechanism.

Modules§

ext
Unified, effect-separated protocol abstraction shared by native and browser.
protocols
Built-in protocol extensions.
transport
Transport relay — one abstraction for TCP, HTTP and (future) UDP.

Structs§

Backend
Backend handles inbound custom messages from the Swarm, routing each decoded Envelope to its namespace’s protocol via the Extensions registry. The registry is shared with the Provider, so protocols registered there are visible to inbound dispatch here. Each protocol’s interpreter does its IO through a namespace-scoped Scope; the underlying router capability is internal. Dispatch owns a detached task so a swarm callback deadline stops waiting without cancelling an already committed protocol transition or its ordered effect trace.