#Realtime got disconnected. Reconnect will be attempted in 1 seconds

1 messages · Page 1 of 1 (latest)

vestal holly
#

should i worry about this

tropic robin
vestal holly
#

Every time

#

I mean every refresh

#

I mean this error is shown

#

Otherwise realtime working

#

Thats why i asked should i woryy?

#

Even realtime is working, this error is shown onevery refresh, when website is loaded

tropic robin
vestal holly
#

yep, i am using Nextjs, dunno if i find the solution i will write here

vestal holly
#

actually i tried different things

#
"use client";

import { createAppwriteClient } from "@/lib/utils/appwrite-client";
import { envi } from "@/lib/utils/env";


type TabsProps = {};

const client = createAppwriteClient();

export default function Tabs({}: TabsProps) {
  useEffect(() => {

    const unsubscribe = client.subscribe(
      [
        `databases.${envi.NEXT_PUBLIC_HOPPLA_DATABASE_ID}.collections.${envi.NEXT_PUBLIC_USERS_COLLECTION_ID}.documents`,
      ],
      (response) => {
        // const payload = response.payload;s
        console.log({
          response,
        });
#

this is last one

tropic robin
vestal holly
#

server is running

#

and

#

when i refresh browser

#

it happens

#

it is the first message in console

#

i was in development mode

#

maybe its internet problem for me dunno

#

when i will try to use realtime, i will write here as well

#

currently i am working on other parts of project

tropic robin
vestal holly
#

yep, maybe Strict Mode does that