You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 6611125
Browse filesBrowse the repository at this point in the historyBrowse files
refactor!: transport-neutral RPC sessions and connection meta
Introduce a transport-neutral `DevframeRpcConnection` (id, transport kind,
connect-time request, send/close, with the crossws `Peer` kept as a
WS-specific escape hatch) and route every connection lifecycle hook through
it — `onPeerConnect` / `onPeerDisconnect` options, `DevframeAuthHandler.onConnect`,
and the transport binding's `onConnected` / `onDisconnected` — instead of the
raw crossws `Peer`. Session meta minting moves to a shared
`rpc/transports/session` module so future transports share one id space.
Also widens `ConnectionMeta` ahead of the SSE transport: `backend` gains
'sse' / 'none', and an `sse` endpoint field (`ConnectionMetaSse`) mirrors the
proxy-safe `websocket` shape.
BREAKING CHANGE: `onPeerConnect` / `onPeerDisconnect` callbacks and
`DevframeAuthHandler.onConnect` now receive a `DevframeRpcConnection`
instead of a crossws `Peer`; reach the peer via `connection.peer`.
0 commit comments