{#if $error}

Something went wrong: {$error.toLocaleLowerCase()}

click here to go back to the homepage

{/if} {#if !$error} {#if isHost} {#if !$room.RTCConnectionReady}

Your secure room is ready.

Share the link below to invite someone to chat directly with you. Once they join, you will be connected automatically.

{roomLink}
{:else} {/if} {:else if awaitingJoinConfirmation} {#if $ws.status !== WebsocketConnectionState.CONNECTED || roomExists === undefined}

Connecting to server...

click here to go back to the homepage

{:else if roomExists === false}

That room does not exist.

click here to go back to the homepage

{:else}

You're invited to chat.

{/if} {:else if !$room.RTCConnectionReady}

Connecting to room...

{:else} {/if} {/if}