feat: define presentation sync protocol

This commit is contained in:
lda
2026-07-14 11:31:23 +07:00 Verified
parent 51d45dd4f4
commit e42561a117
6 changed files with 539 additions and 1 deletions
@@ -0,0 +1,23 @@
export {
JOIN_CODE_LENGTH,
MAX_PRESENTATION_HASH_LENGTH,
MAX_SYNC_MESSAGE_BYTES,
decodeClientSyncMessage,
decodeCreateSessionRequest,
decodeJoinSessionRequest,
decodeServerSyncMessage,
isCanonicalPresentationHash,
normalizeJoinCode,
} from "./protocol.js";
export type {
ClientSyncMessage,
CreateSessionRequest,
DecodeResult,
JoinSessionRequest,
PresentationPresence,
PresentationRole,
PresentationSnapshot,
ServerSyncMessage,
SessionGrant,
} from "./protocol.js";