Module session

Module session 

Source
Expand description

One subscription: the client half of the tier crossing the splitter found.

The page signal is @on(client) and its input is @on(data), so exactly one edge crosses, and this is what the compiler synthesises for it (§4.3 stage 3): “the server side gets a diff operator (DOM patches for Mode-A components), the client side a resumable (subscription, seq) consumer; send becomes the upstream command channel into the ingress.”

Traits§

Socket
Anything that behaves like a websocket connection: the upgraded socket in the server, and an in-memory duplex in the tests.

Functions§

run
Drive one subscription until the socket closes.
run_as
The same, for a connection whose identity was already decided at the HTTP upgrade.