← Back to dashboard @if (currentUser(); as connectedUser) {

{{ connectedUser.displayName }}

Signaling
} @else {

Not signed in

Return to the dashboard and sign in again.

}
@if (conversation().length === 0) {
No text messages yet. The chat page is ready as soon as the peer channel opens.
} @for (entry of conversation(); track entry.id) {
{{ entry.authorLabel }}
@switch (entry.kind) { @case ('text') {

{{ entry.text }}

} @case ('json') {
{{ entry.payload | json }}
} @case ('file') {
@if (isImageEntry(entry)) { }
{{ entry.fileName }}
@if (entry.fileSize) {
{{ entry.fileSize | number }} bytes
}
@if (entry.downloadUrl) { Download }
} @default {

{{ entry.text }}

} }
}
@if (peer(); as selectedPeer) { }