node-device-session 7.6.214

Shared server for /econ-v1/device-session/1 behind transport-neutral traits (C-5)
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# node-device-session

Shared server for the `/econ-v1/device-session/1` wire protocol (C-5 / ADR-100).

Carriers (`node-app-iroh`, `node-app-p2p`) implement [`SessionStreams`] and
[`HostBus`], then call [`serve`]. This crate has **no** iroh (or other carrier)
dependency.

## Public API

- `ALPN` — `b"/econ-v1/device-session/1"`
- `SessionStreams` / `HostBus` / `WebRtcSignaling`
- `serve(conn, bus, ingress, path, webrtc)` — pass `Some(hook)` when the
  carrier answers `webrtc.signal/1`; `None` refuses with `unsupported_transport`

Wire methods: `session.open/1`, `session.renew/1`, `device.call/1`,
`http.request/1`, `ws.stream/1`, `webrtc.signal/1`.