LogoRobo.js
Packages@robojs/sync

DIRECTORY

API reference for @robojs/sync

@robojs/sync

API reference documentation for @robojs/sync.

Interfaces

Type Aliases

Functions

  • ClearHandlers - Clear all registered handlers (for testing).
  • GetHandlerCount - Get handler count (for debugging).
  • GetMiddlewareCount - Get middleware count (for debugging).
  • RegisterHandler - Register a sync handler from manifest.
  • RegisterMiddleware - Register middleware from manifest.
  • SyncBox - A synced container component that synchronizes arbitrary state across clients.
  • SyncContextProvider
  • SyncCursors - Pre-built component that renders all participant cursors automatically.
  • SyncDraggable - Declarative component wrapper for making any element draggable and synchronized.
  • SyncZone - A context provider that establishes a sync zone with key prefix inheritance.
  • UseSyncBroadcast - Hook for sending and receiving ephemeral broadcasts in a sync room.
  • UseSyncCall - Hook for making RPC calls to server-side sync handlers.
  • UseSyncContext - Hook to access the sync context for a given key/room.
  • UseSyncCursor - Hook for tracking and broadcasting cursor positions in real-time.
  • UseSyncDrag - Hook for creating draggable elements with synchronized positions.
  • UseSyncPresence - Hook for tracking participant presence with arbitrary metadata.
  • UseSyncState - Hook for synchronized state across clients.
  • UseZoneContext - Hook to access the current zone context.
  • UseZoneKey - Hook to compute the full key by combining zone prefix with a local id.

Variables

On this page