{userId === localId ? "Local user" : "Remote user"}
+{userId === $liveMetadata.localId ? "Local user" : "Remote user"}
ID: {compactId(userId)}
{error}
- {:else if statuses.length === 0} + {#if $connectionStatusesListenerError} +{$connectionStatusesListenerError}
+ {:else if $connectionStatuses.length === 0}No remote connections configured.
{:else}{error}
+ {#if $liveMetadataListenerError} +{$liveMetadataListenerError}
{:else if liveUserIds().length === 0}Waiting for live metadata...
{:else} {#each liveUserIds() as userId (userId)} - {@const cursor = cursorPositions[userId]} - {@const foregroundApp = foregroundApps.get(userId)} + {@const cursor = $liveMetadata.cursorPositions[userId]} + {@const foregroundApp = $liveMetadata.foregroundApps.get(userId)}ID: {compactId(userId)}