Table of contents

Logging interface for TLSocketRoom operations. Provides optional methods for warning and error logging during synchronization operations.

interface TLSyncLog {}

Example

const logger: TLSyncLog = {
  warn: (...args) => console.warn('[SYNC]', ...args),
  error: (...args) => console.error('[SYNC]', ...args),
}

const room = new TLSocketRoom({ log: logger })

Methods

error

optional

Optional error logger for sync errors and failures

Parameters

NameDescription

args

any[]

Arguments to log

Returns

void

warn

optional

Optional warning logger for non-fatal sync issues

Parameters

NameDescription

args

any[]

Arguments to log

Returns

void

Prev
RoomStoreMethods
Next
WebSocketMinimal