Type Alias: SessionResult
type SessionResult =
| {
ok: true;
}
| {
error?: unknown;
ok: false;
reason: SessionFailureReason;
};
Defined in: service-framework/src/runtime-adapter.ts:92
The outcome of SessionFacet.request. A request never rejects: a host that cannot start a session is a normal runtime condition, not a bug, so the caller gets a result to branch on rather than an exception to catch.