HostSocket.closeWith
method · packages/sync/src/journal.ts:402
closeWith(code: number, reason: string): voidCloses with code and reason; one already closed stays so.
Sync / foldkit-sync/journal
interface · packages/sync/src/journal.ts:400
interface HostSocket extends SocketLike {
closeWith(code: number, reason: string): void
}A server socket a host serves on: Sync's socket, and a close with a code the replica reads.
HostSocket.closeWithmethod · packages/sync/src/journal.ts:402
closeWith(code: number, reason: string): voidCloses with code and reason; one already closed stays so.