Sync / foldkit-sync/journal

Accepted

interface · packages/sync/src/journal.ts:411

interface Accepted {
  readonly serve: (socket: HostSocket) => void
  readonly abandon: () => void
}

An upgrade documentHost accepted. Exactly one of the two must follow: serve once the runtime has opened the socket, or abandon when it never will (the client left, the runtime refused the handshake), which releases what the upgrade built.

Members

Accepted.serve

property · packages/sync/src/journal.ts:412

readonly serve: (socket: HostSocket) => void

Accepted.abandon

property · packages/sync/src/journal.ts:413

readonly abandon: () => void